Part Number Hot Search : 
MC1451 AU211D 2412E 0V8X1 F0805 MWA10S DAC08Q AX168
Product Description
Full Text Search
 

To Download WM8802 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 w
Digital Audio Interface Transceiver
DESCRIPTION
The WM8802 is a digital audio interface transceiver conforming to IEC 60958/61937 and EIAJ CP-1201. The device supports data sampling input rates of up to 192 kHz. Data input to the serial digital audio data input pin can also be modulated. The WM8802 features up to 6 data inputs and 1 data output. Data can be demodulated using the on-board PLL or with the use of an external clock source. The WM8802 is controlled via a 4-wire CCB compatible control interface. This interface provides access to the channel status bits. The WM8802 also provides a number of flag outputs including PCM data valid, de-emphasis, lock and IEC 61937, DTS-CD/LD detection. The device is available in a small 48-pin SQFP package.
WM8802
FEATURES
* * * * * * PLL circuit for synchronization with transferred input biphase mark signal. Input sampling frequency: 32kHz to 192kHz Outputs clocks: fs, fs/2, 2fs, 32fs, 64fs, 128fs, 256fs, 384fs, and 512fs. 4-Wire CCB MPU Serial Control or Hardware Default Interface Master or Slave Clocking Mode Programmable Audio Data Interface Modes - I2S, Left, Right Justified - 16/20/24/32 bit Word Lengths 3.3V Digital supply Operation 5V tolerant digital input ports
* *
APPLICATIONS
* * * DVD Receivers AV Amplifiers DVD Recorders
BLOCK DIAGRAM
EMPH/UO AUDIO/VO INT CL CE DI XMODE
W
WM8802
RXOUT RX0 RX1 RX2 RX3 RX4 RX5/VI RX6/UI LPF TMCLK/GPIO0 TBCLK/GPIO1 TLRCLK/GPIO2 TDATA/GPIO3 TXO/GPIOEN XMCLK CKST
Product Preview, April 2004, Rev 1.1 Copyright 2004 Wolfson Microelectronics plc
CBIT, UBIT
MICROCONTROLLER I/F
DO RERR
INPUT SELECTOR
DEMODULATION AND LOCK DETECT
DATA SELECTOR
RDATA
SDIN PLL CLOCK SELECTOR 1/N RMCK RBCK RLRCK SBCK SLRCK MODULATION AND PARALLEL PORT
XIN
WOLFSON MICROELECTRONICS plc w :: www.wolfsonmicro.com
XOUT
WM8802 TABLE OF CONTENTS
Product Preview
DESCRIPTION .......................................................................................................1 FEATURES.............................................................................................................1 APPLICATIONS .....................................................................................................1 BLOCK DIAGRAM .................................................................................................1 PIN CONFIGURATION...........................................................................................3 ORDERING INFORMATION ..................................................................................3 PIN DESCRIPTION ................................................................................................4 ABSOLUTE MAXIMUM RATINGS.........................................................................6 RECOMMENDED OPERATING CONDITIONS .....................................................7 ELECTRICAL CHARACTERISTICS ......................................................................7
DC CHARACTERISTICS............................................................................................... 7 AC CHARACTERISTICS............................................................................................... 8 MICROCONTROLLER INTERFACE AC CHARACTERISTICS ..................................... 9
DEVICE DESCRIPTION.......................................................................................10 INITIAL SYSTEM SETTINGS...............................................................................10
SYSTEM RESET (XMODE)......................................................................................... 10 CHIP ADDRESS SETTINGS (EMPHA/UO, AUDIO /VO) ............................................ 11 DEMODULATION FUNCTION MASTER/SLAVE SETTINGS ( CKST ) ....................... 12 MODULATION FUNCTION AND GENERAL-PURPOSE I/O PORT SWITCHING ( INT ).....12
DESCRIPTION OF DEMODULATION FUNCTION..............................................13
CLOCKS...................................................................................................................... 13 BI-PHASE SIGNAL INPUT / OUTPUT ........................................................................ 21 SERIAL AUDIO DATA INPUT/OUTPUT...................................................................... 23 ERROR OUTPUT PROCESSING ............................................................................... 27 CHANNEL STATUS OUTPUT..................................................................................... 30 OTHER OUTPUTS...................................................................................................... 31 IEC61937, DTS-CD/LD DETECTION FLAG OUTPUT ................................................ 32
DESCRIPTION OF MODULATION FUNCTION AND GENERAL-PURPOSE I/OS ... 33
MODULATION FUNCTION USAGE METHOD............................................................ 33 GENERAL PURPOSE I/O (GPIO0, GPIO1, GPIO2, GPIO3, GPIOEN)....................... 36
MICRO-CONTROLLER INTERFACE ( INT , CL, CE, DI, DO)..............................37
DESCRIPTION OF MICRO-CONTROLLER INTERFACE ........................................... 37 WRITE DATA .............................................................................................................. 40 READ DATA ................................................................................................................ 53 BURST PREAMBLE PC FIELD ................................................................................... 61
RECOMMENDED EXTERNAL COMPONENTS ..................................................62
SAMPLE APPLICATION ............................................................................................. 62 RECOMMENDED EXTERNAL COMPONENTS VALUES ........................................... 63
PACKAGE DRAWING..........................................................................................64 IMPORTANT NOTICE ..........................................................................................65
ADDRESS: .................................................................................................................. 65
w
PP Rev 1.1 April 2004 2
Product Preview
WM8802
PIN CONFIGURATION
TLRCK/GPIO3 TLRCK/GPIO2 TMCK/GPIO1 TMCK/GPIO0 TXO/GPIOEN XMODE
DGND
DVDD
RXOUT RXO RX1 RX2 RX3 DGND DVDD RX4 RX5/VI RX6/VI DVDD DGND
1 2 3 4 5 6 7 8 9
48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26
DO
CE
CL
DI
RERR INT CKST AUDIO/VO EMPH/UO DGND DVDD XIN XOUT XMCK DVDD DGND
10 11
25 12 13 14 15 16 17 18 19 20 21 22 23 24
DGND
RDATA
DVDD
RLRCK
SLRCK
RBCK
ORDERING INFORMATION
DEVICE TEMPERATURE RANGE PACKAGE PEAK SOLDERING TEMPERATURE 240C
WM8802SCFT/V
RMCK
AGND
AVDD
0 to +70oC
SBCK
SDIN
LPF
48-pin SQFP
w
PP Rev 1.1 April 2004 3
WM8802 PIN DESCRIPTION
PIN 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 NAME RXOUT RX0 RX1 RX2 RX3 DGND DVDD RX4 RX5/VI RX6/UI DVDD DGND LPF AVDD AGND RMCK RBCK DGND DVDD RLRCK RDATA SBCK SLRCK SDIN DGND DVDD XMCK XOUT XIN DVDD DGND EMPH/UO AUDIO/VO CKST INT RERR DO DI CE CL XMODE DGND DVDD TMCK/GPIO0 TYPE Digital Output Digital Input1 Digital Input Digital Input1 Digital Input1 Supply Supply Digital Input1 Digital Input1 Digital Input1 Supply Supply Analogue Output Supply Supply Digital Output Supply Supply Digital Output Digital Output Digital Output Digital Input1 Supply Supply Analogue Output Analogue Output Analogue Input Supply Supply DESCRIPTION Input bi-phase selection data output pin TTL-compatible digital data input pin
Product Preview
Coaxial-compatible digital data input pin with built-in amplifier TTL-compatible digital data input pin TTL-compatible digital data input pin Digital GND Digital power supply TTL-compatible digital data input pin TTL-compatible digital data. Validity flag input pin for modulation. TTL-compatible digital data. User data input pin for modulation. PLL digital power supply PLL digital GND PLL loop filter connection pin PLL analog power supply PLL analog GND R system clock output pin (256fs, 512fs, XIN, VCO) Digital GND Digital power supply Serial audio data input pin S bit clock output pin (32fs, 64fs, 128fs) S LR clock output pin (fs/2, fs, 2fs) Serial audio data input pin Digital GND Digital power supply Oscillation amplifier output pin Crystal resonator connection output pin Crystal resonator connection, external supply clock input pin (24.576 MHz or 12.288 MHz) Digital power supply Digital GND
2
Digital Output/Input R bit clock input/output pin (64fs)
Digital Output/Input R LR clock input/output pin (fs)
2 Digital Input/Output Emphasis information, U data output. Chip address setting pin .
Digital Input/Output Non-PCM output, V flag output. Chip address setting pin . Digital Input/Output Digital Input/Output Digital Output Digital Output Digital Input1 Digital Input1 Digital Input Digital Input1 Supply Supply Clock switch transition period signal. Demodulation master or slave function switch pin3. Micro-controller interrupt output. Modulation or general-purpose I/O switch pin4. PLL clock error, data error flag output Micro-controller I/F read data output pin (3-state) Micro-controller I/F write data input pin Micro-controller I/F chip enable input pin Micro-controller I/F clock input pin System reset input pin Digital GND Digital power supply
Digital Input/Output Modulation 256fs system clock input. General-purpose I/O input/output pin.
w
PP Rev 1.1 April 2004 4
Product Preview PIN 45 46 47 48 Notes: 1. 2. 3. 4. 5. Input/output I or O = -0.3 to 3.6V, except annotated pins: -0.3 to +5.5V Pins 32 and 33 are latch address setting input pins when pin 41 = Low. Pin 34 is the demodulation function master or slave setting input pin when pin 41 = Low. Pin 35 is the modulation function or general-purpose I/O function switch setting input pin when pin 41 = Low. Perform ON/OFF for all power supplies with the same timing as a latch-up countermeasure. NAME TBCK/GPIO1 TLRCK/GPIO2 TDATA/GPIO3 TXO/GPIOEN TYPE DESCRIPTION
WM8802
Digital Input/Output Modulation 64fs bit clock input. General-purpose I/O input/output pin. Digital Input/Output Modulation fs clock input. General-purpose I/O input/output pin. Digital Input/Output Modulation serial audio data input. General-purpose I/O input/output pin. Digital Output/Input Modulation data output. General-purpose I/O enable input pin.
w
PP Rev 1.1 April 2004 5
WM8802
Product Preview
ABSOLUTE MAXIMUM RATINGS
Absolute Maximum Ratings are stress ratings only. Permanent damage to the device may be caused by continuously operating at or beyond these limits. Device functional operating limits and guaranteed performance specifications are given under Electrical Characteristics at the test conditions specified. ESD Sensitive Device. This device is manufactured on a CMOS process. It is therefore generically susceptible to damage from excessive static voltages. Proper ESD precautions must be taken during handling and storage of this device.
CONDITION Maximum supply voltage Maximum supply voltage Input voltage 1 Input voltage 2 Output voltage Storage ambient temperature Operating ambient temperature Maximum input/output current Notes: 1. 2. 3. AVDD pin DVDD pin RX1, RBCK, RLRCK, XIN pins
SYMBOL AVDDmax DVDDmax Vi1 Vi2 Vo Tstg Topg Ti, To
CONDITIONS 1 2 3 4 5
MIN-MAX -0.3 to 4.6V -0.3 to 4.6V -0.3 to DVDD +0.3V -0.3 to 5.8V -0.3 to DVDD +0.3V -55 to 125oC -30 to 70 oC
6
20mA
TMCK/GPIO0, TBCK/GPIO1, TLRCK/GPIO2, TDATA/GPIO3, TXO/GPIOEN pins 4. RX0, RX2, RX3, RX4, RX5/VI, RX6/UI pins SDIN, DI, CE, CL, XMODE pins 5. RXOUT, RMCK, RBCK, RLRCK, SBCK, SLRCK, RDATA pins XMCK, XOUT, EMPHA/UO, AUDIO /VO, CKST , INT , RERR, DO pins TMCK/GPIO0, TBCK/GPIO1, TLRCK/GPIO2, TDATA/GPIO3, TXO/GPIOEN pins 6. Per input/output pin
w
PP Rev 1.1 April 2004 6
Product Preview
WM8802
RECOMMENDED OPERATING CONDITIONS
PARAMETER Supply voltage Input voltage range 1 Input voltage range 2 Operating temperature Notes: 1. 2. RX1, RBCK, RLRCK, XIN pins TMCK/GPIO0, TBCK/GPIO1, TLRCK/GPIO2, TDATA/GPIO3, TXO/GPIOEN pins RX0, RX2, RX3, RX4, RX5/VI, RX6/UI pins SDIN, DI, CE, CL, XMODE pins SYMBOL AVDD, DVDD VIN1 VIN2 Vopq 1 2 TEST CONDITIONS MIN 3.0 0 0 -30 TYP 3.3 3.3 3.3 MAX 3.6 3.6 5.5 70 UNIT V V V
o
C
ELECTRICAL CHARACTERISTICS
DC CHARACTERISTICS
Test Conditions DC Characteristics at Ta = 25oC, AVDD = DVDD = 3.3V, AGND = DGND = 0V PARAMETER Input, High Input, Low Input, High Input, Low Output, High Output, Low Output, High Output, Low Output, High Output, Low Output, High Output, Low Input amplitude Consumption current Consumption current Consumption current Notes: 1. 2. 3. 4. 5. CMOS levels: RX1, RBCK, RLRCK, XIN pins TTL levels: Pins other than those listed above IOH = -12mA, IOL = 8mA: RMCK pin IOH = -8mA, IOL = 8mA: XMCK, XOUT pins IOH = -4mA, IOL = 4mA: RXOUT, RBCK, RLRCK, RDATA, SBCK pins SLRCK, TMCK/GPIO0, TBCK/GPIO1, TLRCK/GPIO2 pins TDATA/GPIO3, TXO/GPIOEN pins IOH = -2mA, IOL = 2mA: Pins other than those listed above Before capacitance of RX1 input pin Demodulation function and oscillation amplifier stopped, modulation only, output sampling frequency = 96kHz XIN continuous 24.576MHz oscillation, demodulation only, input sampling frequency = 96kHz XIN continuous 24.576MHz oscillation, modulation, input/output sampling frequency = 96kHz SYMBOL VIH VIL VIH VIL VOH VOL VOH VOL VOH VOL VOH VOL VPP VDD1 VDD1 VDD1 7 8 9 10 6 5 4 3 2 TEST CONDITIONS 1 MIN 0.7VDD - 2.0 -0.3 VDD-0.8 - VDD-0.8 - VDD-0.8 - VDD-0.8 - 200 - - - TYP - - - - - - - - - - - - - 1.7 17 19 MAX - 0.2VDD 5.8 0.8 - 0.4 - 0.4 - 0.4 - 0.4 - 3.4 34 38 UNIT V V V V V V V V V V V V mV mA mA mA
6. 7. 8. 9. 10.
w
PP Rev 1.1 April 2004 7
WM8802
AC CHARACTERISTICS
Test Conditions AC Characteristics at Ta = 25oC, AVDD = DVDD = 3.3V, AGND = DGND = 0V PARAMETER RX0 TO RX6 sampling frequency XIN clock frequency XIN clock frequency RMCK clock frequency RMCK clock jitter RMCK, RBCK delay RBCK, RDATA delay RMCK, SBC delay SMCK, RDATA delay TMCK input pulse width TBCK input pulse width TLRCK sampling frequency TBCK, TDATA setup TBCK, TDATA hold TMCK, TBCK delay TBCK, TDATA delay Notes: 1. 2. 3. 4. XINSEL = "0" setting, 12.288MHz must be set when calculating input sampling frequency XINSEL = "1" setting, 24.576MHz must be set when calculating input sampling frequency When RMCK and SBCK source clocks are the same When SBCK is the PLL source clock SYMBOL fRFS fXF1 fXF2 fRCK tj tMBO tBDO tMBO tBDO tWMI tWBI fTFS tDSI tDHI tMBI tBDI 3 4 1 2 TEST CONDITIONS MIN 28 8 20 4 - - - - - 10 40 28 - - - - TYP - 12.288 24.576 - 200 - - - - - - - 20 20 - - MAX 195 19 30 100 - 10 10 10 10 - - 195 - - 10 10
Product Preview
UNIT kHz MHz MHz MHz ps ns ns ns ns ns ns kHz ns ns ns ns
RMCK(O) RBCK(O) RDATA(O) RLRCK(O)
tWMI tWMI tMBO tBDO
TMCK (I) TBCK(I) TDATA(I)
tBDI tWBI tWBI tDSI tDHI tMBI
TLRCK(I)
Figure 1 AC Characteristics
w
PP Rev 1.1 April 2004 8
Product Preview
WM8802
MICROCONTROLLER INTERFACE AC CHARACTERISTICS
Test Conditions I/F AC Characteristics at Ta = 25oC, AVDD = DVDD = 3.3V, AGND = DGND = 0V PARAMETER XMODE pulse width, Low
INT
SYMBOL tRST dw tINT uw tCL dw tCL uw tCL setup tCE hold tDI setup tDI hold tCL hold tCL to DO tCE to DO
TEST CONDITIONS 1
MIN 200 5 100 100 50 50 50 50 50 - -
TYP - 1/fs - - - - - - - - -
MAX - 36 - - - - - - - 20 20
UNIT s s ns ns ns ns ns ns ns ns ns
pulse width, Low
CL pulse width, Low CL pulse width, High CL, CE setup time CL, CE hold time CL, DI setup time CL, DE hold time CL, CE hold time CL, DO delay time CE, DO delay time Notes: 1.
When INTOPF is set to "1", fs = input sampling frequency
tINTuw INT tCLuw CL tCEsetup tCEhold CE tDIsetup DI tCEtoDO DO Hi-Z tCLtoDO tDIhold tCLhold tCLdw
Figure 2 Micro-controller Interface AC Characteristics
w
PP Rev 1.1 April 2004 9
WM8802 DEVICE DESCRIPTION INITIAL SYSTEM SETTINGS
SYSTEM RESET (XMODE)
Product Preview
The system operates normally when XMODE is set to High after applying a supply voltage of 3.0V or greater. Following power ON, the system is reset by setting XMODE to Low again. A 10k pull-down or pull-up resistor can be used to set EMPHA/UO, AUDIO /VO, CKST and INT for the following: * * * chip address demodulation function master or slave modulation function or general-purpose I/O function settings
If EMPHA/UO, AUDIO /VO, CKST , and INT are not pulled up or down, their state is undefined. A pull-up or pull-down resistor should always be connected to these pins. SETTING Chip address Demodulation function master or slave Modulation function or generalpurpose I/O function Table 1 Pin Names and Settings EMPHA/UO, AUDIO /VO
CKST
PINS
INT
Normal system operation range Setting completed 3.0V DVDD 3.3V
XMODE
Set pin state
Undefined
Setting input state
Output state
Setting input state
Output state
Min 200 s
Figure 3 Setting Timing Chart of Function Setting Input Pins
w
PP Rev 1.1 April 2004 10
Product Preview
WM8802
CHIP ADDRESS SETTINGS (EMPHA/UO, AUDIO /VO)
The WM8802 comes with a function to set a unique chip address to allow the use of several WM8802 on the same micro-controller bus. A 10k pull-down or pull-up resistor is used to set EMPHA/UO and AUDIO /VO as the chip address settings. This allows up to set 4 chip addresses. Chip addresses in the micro-controller interface can be set with CAL and CAU provided that they are first two bits on the LSB side. CAL and CAU corresponds to the lower and higher chip address respectively. Address writing to a particular device is enabled by making the chip address setting, using EMPHA/UO and AUDIO /VO, the same as the chip addresses sent from the micro-controller. The chip address setting must be performed even when using only one WM8802 in the system. The chip address is undefined and control from the micro-controller cannot be performed if the chip address setting is not performed. While XMODE is Low and the micro-controller is not used the state of the chip address setting pin is undefined,. Be sure to connect either A pull-down resistor or a pullup resistor should be connected to EMPHA/UO and AUDIO /VO.
AUDIO /VO
EMPHA/UO
CAU
CAL
Pull-down Pull-down Pull-up Pull-up
Pull-down Pull-up Pull-down Pull-up
0 0 1 1
0 1 0 1
Table 2 Chipset Address Settings
WM8802 EMPH/UO AUDIO/VO CKST INT
Pull-up 10k
External Circuit
Pull-down 10k
Figure 4 Function Setting Input Pin Setting Example Notes:
1. 2. 3.
Chip address setting Demodulation function master or slave setting
=> CAL = CAU = 0 => Master
Modulation function or general purpose I/O port switch => General purpose I/O port function
w
PP Rev 1.1 April 2004 11
WM8802
DEMODULATION FUNCTION MASTER/SLAVE SETTINGS ( CKST )
Product Preview
A master/slave function allows multi-channel synchronized transfer using multiple WM8802 devices. A 10k pull-down or a pull-up resistor should be connected to CKST to set this function. Set the master mode when using only one WM8802. When using multiple WM8802 devices, set one to the master mode and the others to slave mode. In order to perform multi-channel transfer when using multiple WM8802 devices, RBCK and RLRCK (output) should be connected as the master and RLRCK (input) as the slave. XMCK of the master device should be connected to XIN of the slave device. The same polarity should be set for RBCK and RLRCK and the same frequency for XIN and XMCK. Some of the output data maybe dropped or read twice on the slave side if the input data sampling frequency or the phase between the master and slave differ. This can also be true if the clock sources differ even though the sampling frequencies are the same. This phenomenon can be checked using the INT pin and the micro-controller interface.
CKST Pull-down
MODE
Master mode Slave mode
Pull-up
Table 3 Master/Slave Switching PIN MASTER MODE
SLAVE MODE
RMCK RBCK RLRCK
Output Output Output
Low Input Input
Table 4 Clock Pin State
MODULATION FUNCTION AND GENERAL-PURPOSE I/O PORT SWITCHING ( INT )
The modulation function and the general-purpose I/O function share the same pin and therefore cannot be used simultaneously. A 10k pull-down or pull-up resistor can be connected to INT to select the function listed in Table 5.
INT STATE
FUNCTION
pull-down Pull-up
Modulation f unction General-purpose I/O
Table 5 Modulation Function and General-Purpose I/O Switching
w
PP Rev 1.1 April 2004 12
Product Preview
WM8802
DESCRIPTION OF DEMODULATION FUNCTION
The demodulation function operation settings are performed using RXOPR.
CLOCKS
PLL (LPF)
The VCO (Voltage Controlled Oscillator) can be stopped if PLLOPR is set. Synchronization to frequencies from 32kHz to 192kHz and RMCK of 4MHz to 25MHz can be selected. The PLL clock frequency is selected with PLLSEL. For systems with an input data sampling frequency of 105kHz or lower, the initial setting of 512fs is recommended. Since the system clock RMCK output initial value is set to 1/2 of PLLSEL, the RMCK output is 256fs when a PLL clock frequency of 512fs is used. For systems with an input data sampling frequency higher than 105kHz, the PLL clock frequency should be set to 256fs. RMCK will be 128fs if PRSEL0 is set to 1 and the same initial output setting (i.e. 256fs) is used, LPF is a PLL loop filter pin. Resistances and capacitances should be selected in accordance with the frequency of the PLLSEL system clock. The PLLSEL setting should be set prior to bi-phase data input since PLLSEL switching involves a change in LPF loop filter constant.
LPF
R0
C1
C0
Figure 5 Loop Filter Configuration
PLLCK1
PLLCK0
R0
C0
C1
0 0 1 1
0 1 0 1
150 220
0.047F 0.068F
0.0068F 0.0047F
Table 6 Loop Filter Component Values
w
PP Rev 1.1 April 2004 13
WM8802
DEMODULATION FUNCTION WITHOUT USING PLL (TMCK)
Product Preview
The WM8802 has a function to process input bi-phase data using an external clock (external synchronization function). In normal demodulation processing, the clock is generated in synchronization with data by the built-in PLL; the data processing is performed using this clock. It is possible to perform data processing by supplying a data synchronized clock instead of the clock generated by the PLL via an independent transmission path. The demodulation function can be used to set external synchronization function without using the PLL by EXSYNC. PLLSEL should be set to 256fs and PRSEL0 should be set to 1 (setting frequency to 1/1). The 256fs clock should then be synchronized with the input data to TMCK. As a result of these settings, the same operation occurs as PLL demodulation processing with a 256fs clock. LPF should remain unconnected as no loop filter is required. The external synchronization function settings should be completed prior to bi-phase data input (paying attention to the bandwidth of clock transmission path). A high-precision clock system using an external PLL can also be configured by using the external synchronization function.
OSCILLATION AMPLIFIERS (XIN, XOUT, MCK)
The WM8802 features a built-in oscillation amplifier. An oscillation circuit can be configured by connecting a crystal resonator, feedback resistor and load capacitance across XIN and XOUT. When connecting a crystal resonator, use a fundamental crystal resonator. Note that the load capacitance depends on the crystal resonator characteristics. The output of an external clock supply source should be connected to XIN if the built-in oscillation amplifier is not used as the clock source. In this configuration it is not necessary to connect a feedback resistor between XIN and XOUT. A 12.288MHz or 24.576MHz clock can be supplied to XIN by setting XINSEL. If input frequency to XIN changes it is necessary to set FSERR to 1, so that when the input data sampling frequency changes, the result is not reflected in the error flag. Since the input frequency is then different to the recommended frequency operation, the encoding result cannot be used for input fs calculations. In this case, the input fs can be calculated by performing decimal division of the count value (FSDAT) with 1/2000th of the XIN input frequency. For details, see Micro-controller Interface section. Since the XIN clock serves as the reference for internal processing, the XINSEL setting should be completed prior to bi-phase data input. A clock should be supplied to XIN at the following times: (1) (2) (3) (4) (5) Detection of bi-phase data input Clock source during PLL unlock Input data sampling frequency calculation Time definition during input data switching External supply clock source (AD converter clock, etc.)
The oscillation amplifier automatically stops when the PLL is locked. However, it can also be set for continuous operation with AMPOPR set to 1. Setting the continuous operation mode enables input data detection and input sampling frequency calculation even when the PLL is locked; this has an effect on the sound quality because the oscillation amplifier and PLL clock coexist. RERR outputs an error (High) once the PLL is locked if the oscillation amplifier is set to continuous operation by setting AMPOPR to 1. This occurs because, at the same time that the oscillation amplifier goes into the operating state, the fs calculation value that is held when operation is stopped, is reset. This error has no influence on the clock output, but RDATA is muted while this error occurs. Therefore, the AMPOPR[0:1] setting must be completed either prior to bi-phase data input or during PLL unlock.
w
PP Rev 1.1 April 2004 14
Product Preview
WM8802
The oscillation amplifier can be stopped if it is unnecessary. When operation is resumed it is recommended to return to the normal operation after an interval of 10ms or longer to allow the resonator oscillation to stabilise. XMCK outputs the XIN clock. The XMCK output settings are performed with XMSEL[0:1]. The XIN clock can be set to 1/1, 1/2 or muted output. No clock is needed for XIN when only using the modulation function. In this case, the built-in oscillation amplifier and frequency divider are used for RMCK, RBCK, and RLRCK clock generation. Input the crystal resonator frequency across XIN and XOUT (if using only the oscillation amplifier) or an external clock to XIN. The potential of digital data input pins RX0 to RX6 should be fixed. The DIR function is stopped using RXOPR and PLLOPR and should not be set at this time. The output clock may also be muted.
MASTER CLOCK AND CLOCK SOURCE SWITCHING
The RMCK, RBCK, and RLRCK, and the SBCK and SLRCK (see below) clock sources can be selected from the following three master clocks. (1) (2) (3) PLL source XIN source TMCK source (256fs or 512fs) (12.288MHz or 24.576MHz) (256fs)
Clock source switching can be done in one of two ways, either by setting the R system and the S system on an interconnected basis or fixing the S system to the XIN source and setting only the R system. This setting is performed using SELMTD, OCKSEL and RCKSEL. The clock source is automatically switched between PLL clock and XIN clock by locking/unlocking the PLL. The continuity of the clock is maintained at this time. However, if switching the clock source with SELMTD, the continuity of the S system is not maintained. The clock source can be switched to XIN using OCKSEL and RCKSEL, regardless of the PLL status. The clock source switch command and clock output of the R and S systems are shown below.
SELMTD
R SYSTEM OUTPUT CLOCK
S SYSTEM OUTPUT CLOCK
0 1
According to OCKSEL According to RCKSEL
According to OCKSEL Fixed to XIN source
Table 7 Correspondence between Clock Source Switch Commands and Clock Output Pins
SELMTD
OCKSEL
RCKSEL
R SYSTEM CLOCK SOURCE Locked Unlocked
S SYSTEM CLOCK SOURCE Locked Unlocked
0 1
0 1 X X
X X 0 1
PLL XIN PLL XIN
XIN XIN XIN XIN
PLL XIN XIN XIN
XIN XIN XIN XIN
Table 8 Relationship between Clock Source Switch Commands and Clock Sources when PLL Locked/Unlocked
The TMCK source is selected using EXSYNC. This setting results in the same operation as when 256fs is set with the PLL source (i.e. PLLSEL set to 256fs). The various clocks are output with the TMCK source as the master clock and the PLL clock status is output if data synchronised with TMCK is input. The XIN source is switched with OCKSEL and RCKSEL. When the TMCK source is not supplied or the input data is not synchronized, the source is switched to the XIN source; this is similar to the PLL source unlocked status. The PLL status can always be monitored with RERR even after the XIN source is switched. The processed information can also be read with the micro-controller interface regardless of the PLL status.
w
PP Rev 1.1 April 2004 15
WM8802
Product Preview When the PLL changes from locked to unlocked status, the timing for switching the clock from the PLL source to the XIN source can be changed with XTWT[0:1]. It is recommended to use these commands if noise occurs during clock switching.
CAUTIONS ON SWITCHING CLOCK SOURCE WHILE PLL IS LOCKED
Clock continuity is maintained when switching the clock to the XIN source with SELMTD, OCKSEL, and RCKSEL. RERR outputs an error (High) when the oscillation amplifier is stopped while the PLL is locked (initial setting). The oscillation amplifier goes into the operating state at the same time that the clock is switched to the XIN source and calculation of the input fs (sampling frequency) resumes. The previous fs calculation value is then reset. The processing performs as if the fs value had changed compared to the newly calculated fs value. The following settings must be performed in order to switch the clock source with SELMTD, OCKSEL and RCKSEL while PLL is locked and maintaining the RERR status. (1) (2) Set the oscillation amplifier to the continuous operation mode with AMPOPR[0:1]. Set with FSERR the mode for not reflecting fs changes to the error flag.
By performing one of the above settings, it is possible to control the RERR change status when switching the clock source with SELMTD, OCKSEL and RCKSEL. When switching the clock source to XIN (oscillation amplifier stopped and PLL locked), the output clock is output after the oscillation amplifier starts operating. When switching the clock source from XIN to PLL the clock continuity is maintained.
MASTER CLOCK BLOCK DIAGRAM (TMCK, XIN, XOUT, RMCK, XMCK)
The relationships between the three master clocks, switching and the frequency division function are shown below. The contents in the square brackets [] of the switch function blocks correspond to the write command names. Lock/Unlock switching is automatically performed through PLL locking/unlocking.
[PLLOPR] [PLLSEL] Selected Biphase [EXSYNC] PLL (256fs or 512fs)
[PRSEL0] [PRSEL1] 1/N (N=1, 2, 4)
Lock /Unlock
RMCK (O) TMCK (I) 256fs only [SELMTD] [OCKSEL] [RCKSEL]
[AMPOPR0] [AMPOPR1] XIN (I)
[XINSEL] 1/N (N=1, 2)
[XRSEL0] [XRSEL1] 1/N (N=1, 2, 4)
XOUT (O) [XMSEL0] [XMSEL1] 1/N (N=1, 2) XMCK (O)
Figure 6 Master Clock Block Diagram
w
PP Rev 1.1 April 2004 16
Product Preview
WM8802
OUTPUT CLOCKS (RMCK, RBCK, RLRCK, SBCK, SLRCK)
The WM8802 features two clock systems in order to supply the various clocks for the A/D converter, DSP and other peripheral devices. The clock output settings for the R and S systems are set using PRSEL[0:1], XRSEL[0:1], XRBCK[0:1], XRLRCK[0:1], PSBCK[0:1], PSLRCK[0:1], XSBCK[0:1], and XSLRCK[0:1].
(a) Setting range for clock output pins when using the PLL source
(1) (2) (3) (4) (5)
RMCK: 1/1, 1/2, and 1/4 of 512fs or 256fs RBCK: 64fs output RLRCK: fs output SBCK: 128fs, 64fs, and 32fs SLRCK: 2fs, fs, and fs/2
(b)
Setting range for clock output pins when using the XIN source
(1) (2) (3) (4) (5)
RMCK: 1/1, 1/2, and 1/4 of 12.288MHz or 24.576MHz RBCK: 12.288MHz, 6.144MHz, and 3.072MHz SBCK: 12.288MHz, 6.144MHz, and 3.072MHz RLRCK: 192kHz, 96kHz, and 48kHz SLRCK: 192kHz, 96kHz, and 48kHz
The polarity of RBCK, RLRCK, SBCK and SLRCK can be reversed with RBCKP, RLRCKP, SBCKP and SLRCKP. Clock switching is processed on the rising edge of the RLRCK output after the falling edge of microcontroller interface CE.
PLL SOURCE 512fs 256fs TMCK SOURCE 256fs XIN SOURCE 12.288MHz 24.576MHz
OUTPUT PIN NAME
512fs RMCK 256fs 128fs RBCK
256fs 128fs 64fs 64fs
256fs 128fs 64fs
12.288MHz 6.144MHz 3.072MHz
24.576MHz 12.288MHz 6.144MHz
12.288MHz 6.144MHz 3.072MHz 192kHz RLRCK fs 128fs SBCK 64fs 32fs 2fs SLRCK fs fs/2
Table 9 Output Clock Frequencies (Bold Items = Initial Settings)
96kHz 48kHz 12.288MHz 6.144MHz 3.072MHz 192kHz 96kHz 48kHz
w
PP Rev 1.1 April 2004 17
WM8802
Product Preview
OUTPUT CLOCKS BLOCK DIAGRAM (RMCK, RBCK, RLRCK, SBCK, SLRCK, XMCK)
The relationships between the output clock and switch function are shown below. Master Clock Generator in the figure indicates the PLL source, TMCK source or the XIN source. The contents in the square brackets [] of the switch function blocks correspond to the write command names. The broken lines connecting the switches indicate coordinated switching. Lock/Unlock switching is automatically performed through PLL locking/unlocking. Master/slave switching is done through demodulation function master/slave function switching.
w
PP Rev 1.1 April 2004 18
Product Preview
WM8802
Lock / Unlock
Master Clock Generator
XTAL Source 12.288MHz or 24.576MHz PLL Source 256fs or 512fs TMCK Source 256fs
512fs / 256fs 256fs / 128fs 128fs / 64fs MUTE
[PRSEL]
[OCKSEL] ([SELMTD]=0) [RCKSEL] ([SELMTD]=1)
PLL 12.288MHz / 24.576MHz 6.144MHz / 12.288MHz 3.072MHz / 6.144MHz MUTE [XRSEL] XIN
RMCK (O)
PLL 64fs PLL 12.288MHz 6.144MHz 3.072MHz MUTE [XRBCK] XIN
Master / Slave
RBCK (I/O)
PLL fs PLL
RLRCK (I/O)
192kHz 96kHz 48kHz MUTE [XRLRCK] XIN
to internal circuits
128fs 64fs 32fs MUTE
[PSBCK] [SELMTD]
PLL 12.288MHz 6.144MHz 3.072MHz MUTE [XSBCK] XIN
SBCK (O)
2fs fs fs/2 MUTE
[PSLRCK]
PLL 192kHz 96kHz 48kHz MUTE
SLRCK (O)
[XSLRCK] XIN
12.288MHz / 24.576MHz 6.144MHz / 12.288MHz MUTE
[XMSEL] XIN
XMCK (O)
Figure 7 Clock Output Block Diagram
w
PP Rev 1.1 April 2004 19
WM8802
CLOCK SWITCH TRANSITION SIGNAL OUTPUT ( CKST )
CKST outputs Low when the output clock changes during PLL lock/unlock.
Product Preview
In the lock-in stage (PLL locked following the detection of input data) the CKST Low pulse falls at the word clock edge generated from the XIN clock. The CKST Low pulse rises at the same timing as RERR following the lapse of a given period. In the unlock stage, the CKST Low pulse falls at the same timing as the PLL lock detection signal RERR and rises following a given number of word clocks generated from the XIN clock. The PLL lock status change and clock change timing is detected by the rising and falling edges of the CKST Low pulse.
RX0 to RX6 Locked status XTAL Clock VCO Clock Unlock
Digital Data Lock
45 ms to 300 ms
CKST RERR
After PLL lock
Same timing as RERR
RMCK (a) Lock-in stage
RX0 to RX6 Locked status XTAL Clock VCO Clock CKST
Digital Data Lock Unlock
0.6 ms to 6.4 ms Same timing as RERR
RERR RMCK (b) Unlock stage
Figure 8 Clock Switch Timing
w
PP Rev 1.1 April 2004 20
Product Preview
WM8802
BI-PHASE SIGNAL INPUT / OUTPUT
BI-PHASE SIGNAL INPUT RECEPTION RANGE
The input data reception range depends on the PLL lock frequency setting set by PLLSEL. The relationship between this setting and the guaranteed reception range is shown below.
PLL OUTPUT CLOCK SETTING
512fs (PLLSEL = 0) 256fs (PLLSEL = 1)
INPUT DATA RECEPTION RANGE
28kHz to 105kHz 28kHz to 195kHz
Table 10 Relationship Between PLL Output Clock Setting and Reception Range (FSLIM[0:1] = 0)
The fs reception range for input data within the above PLL output clock setting range can be controlled. This setting is performed using FSLIM[0:1]. When this function is used, input data that exceeds the setting range is considered as an error and the clock source is automatically switched to the XIN source. The RDATA output data then depends on the RDTSEL setting.
BI-PHASE SIGNAL INPUT/OUTPUT PINS (RX0 TO RX6, RXOUT)
There are 7 digital data input pins. Data modulated with the modulation function can also be selected, therefore selection from a total of 8 signals is possible. However, the pins that can be selected are restricted by the following conditions: 1. 2. The six pins RX0 and RX2 to RX6 are TTL level input pins with 5V input level tolerable. RX1 is a coaxial-compatible input pin with built-in amplifier that can receive up to 200mVp-p data.
The demodulation input and RXOUT output signals can also be selected independently. 1. 2. The demodulation data is selected with RISEL[0:2]. The RXOUT output data is selected with ROSEL[0:2].
RXOUT can be muted with RXOFF. Muting is recommended when not using RXOUT in order to reduce clock jitter. The data input status can be monitored with the RXMON setting. The status of each data input pin is stored in CCB address 0xEA and output registers DO0 to DO7. Since this function uses the XIN clock, the oscillation amplifier must be set to the continuous operation mode when RXMON is set. Demodulation input pin switching can be performed during PLL unlock using the ULSEL setting. As a result, data switching can be accurately communicated to peripheral devices. The interval from pin switching through RISEL[0:2] until data is received is about 250s to 350s. This function also requires that the oscillation amplifier is set to the continuous operation mode.
Input pin selection
RX0
RX2
RX3
RX1
Internal supply signal
RX0
RX2
RX3
RX1
250s to 350s
Figure 9 Input Pin Selection Processing via PLL Unlock
w
PP Rev 1.1 April 2004 21
WM8802
BI-PHASE SIGNAL INPUT CIRCUITS (RX0, RX1, RX2)
Product Preview
If RX1, which has a built-in amplifier, is used as a coaxial input signal corruption may occur due to the influence of the adjacent RX0 and RX2 input pins. RX0 and RX2 should be fixed to Low to prevent them from influencing RX1. The input signal to RX1 is temporarily open if RX1 is selected. The RX0 and RX2 potential must be fixed due to coupling effects. In this case, 5 bi-phase signal input pins can be selected; RX1 and RX3 to RX 6. If the input signal to RX1 is absolutely fixed to either High or Low then all 7 input pins can be used.
WM8802 RX0 Coaxial 75 0.1F RX1 RX2 RX3 RX4 Other inputs RX5 RX6
Figure 10 Bi-Phase Signal Input Circuits - Coaxial Input Circuit
Optical 100
WM8802 RX0 RX1 100 RX2 100 RX3 RX4 Other inputs RX5 RX6
Figure 11 Bi-Phase Signal Input Circuits - Optical Input Circuit
w
PP Rev 1.1 April 2004 22
Product Preview
WM8802
OUTPUT DATA FORMAT (RDATA)
The output format is set with OFSEL[0:2]. I2S is the initial output format setting. Right Justified outputs are only valid in master mode. Output data is output in synchronization with the RLRCK edge immediately after the RERR output becomes Low.
SERIAL AUDIO DATA INPUT/OUTPUT
1/fs
LEFT CHANNEL RLRCK (0)
RIGHT CHANNEL
RBCK (0)
1 BCLK 1 BCLK 3 n-2 n-1 n 1 2 3 n-2 n-1 n
RDATA (0)
1
2
MSB
16 to 24 bits
LSB
MSB
16 to 24 bits
LSB
Figure 12 Data Output Timing - I2S
1/fs
LEFT CHANNEL RLRCK (0)
RIGHT CHANNEL
RBCK (0)
RDATA (0)
1
2
3
n-2 n-1
n
1
2
3
n-2 n-1
n
MSB
16 to 24 bits
LSB
MSB
16 to 24 bits
LSB
Figure 13 Data Output Timing - Left Justified
w
PP Rev 1.1 April 2004 23
WM8802
1/fs
Product Preview
LEFT CHANNEL RLRCK (0)
RIGHT CHANNEL
RBCK (0)
RDATA (0)
1
2
3
n-2 n-1
n
1
2
3
n-2 n-1
n
MSB
16,20,24 bits
LSB
MSB
16,20,24 bits
LSB
Figure 14 Data Output Timing - Right Justified
SERIAL AUDIO DATA INPUT FORMAT (SDIN)
SDIN is a 24 bit serial digital audio data input pin. The format of the serial audio data input to SDIN is the same as the demodulation data output format.
1 BCLK
1 BCLK 3 n-2 n-1 n 1 2 3 n-2 n-1 n
SDIN (1)
1
2
LSB
MSB
1/fs
LSB
LEFT CHANNEL RLRCK (0)
RIGHT CHANNEL
RBCK (0)
1 BCLK 1 BCLK 3 n-2 n-1 n 1 2 3 n-2 n-1 n
RDATA (0)
1
2
MSB
16 to 24 bits
LSB
MSB
16 to 24 bits
LSB
Figure 15 Serial Audio Data Input Timing - I2S Data Input
w
PP Rev 1.1 April 2004 24
Product Preview
WM8802
SDIN (1)
1
2
3
n-2 n-1
n
1
2
3
n-2 n-1
n
MSB
LSB
1/fs LEFT CHANNEL RIGHT CHANNEL
RLRCK (0)
RBCK (0)
RDATA (0)
1
2
3
n-2 n-1
n
1
2
3
n-2 n-1
n
MSB
16 to 24 bits
LSB
MSB
16 to 24 bits
LSB
Figure 16 Serial Audio Data Input Timing - Left Justified
SDIN (1)
1
2
3
n-2 n-1
n
1
2
3
n-2 n-1
n
1/fs LEFT CHANNEL RLRCK (0) RIGHT CHANNEL
RBCK (0)
RDATA (0)
1
2
3
n-2 n-1
n
1
2
3
n-2 n-1
n
MSB
16,20,24 bits
LSB
MSB
16,20,24 bits
LSB
Figure 17 Serial Audio Data Input Timing - Right Justified
w
PP Rev 1.1 April 2004 25
WM8802
OUTPUT DATA SWITCHING (SDIN, RDATA)
Product Preview
RDATA demodulation data is output when the PLL is locked and the SDIN input is selected This switching is automatically performed according to the locked/unlocked status of the PLL. For details, see the timing charts below. Switch to a clock source synchronized to the SDIN data when SDIN input data is selected. The SDIN input data can be output to RDATA regardless of the locked/unlocked status of the PLL using RDTSTA setting. The RDATA output data can be forcibly muted using the RDTMUT setting. The PLL continues operating when the clock source is set to XIN using OCKSEL and RCKSEL as long as its operation is not stopped using PLLOPR. The PLL status is continuously output from RERR as long as error output is not forcibly set with RESTA. The processed information can also be read with the micro-controller interface regardless of the PLL status.
PLL locked status CKST RERR RDATA
UNLOCK
LOCK
SDIN data
Muted
Demodulation data
(a) Lock-in stage
PLL locked status CKST RERR RDATA
LOCK
UNLOCK
Demodulation data
Muted
SDIN data
(b) Unlock stage
Figure 18 RDATA Output Data Switch Timing Chart
DATA BLOCK DIAGRAM (RX0 TO RX6, TX0, RXOUT, TDATA, RDATA, SDIN)
The RDATA output data is switched to SDIN input data using RDTSEL. The SDIN input data can be input to the modulation function using TDTSEL. The modulation output is an input to the Input Switch Multiplexer and can be output from RXOUT. It is possible to use a signal that has been digitized with an A/D converter for digital recording output, etc. using this function.
w
PP Rev 1.1 April 2004 26
Product Preview
WM8802
SDIN
RX0 RX1 RX2 RX3 RX4 RX5 RX6 MUX DIR (8in / 2out)
[RDTSEL] RDATA
RXOUT
[TDTSEL] DIT TXO
TDATA
Figure 19 Data Block Diagram
CALCULATION OF INPUT DATA SAMPLING FREQUENCY
The input data sampling frequency is calculated using the XIN clock. When the oscillation amplifier automatically stops during PLL lock, the input data sampling frequency is calculated during the RERR error period. The calculation is completed at the same time that the oscillation amplifier stops. The value remains unchanged until the PLL becomes unlocked. In the mode where the oscillation amplifier operates continuously, calculation processing is performed continuously The calculation results (which follows the input data) can be read even if sampling rate is changed within the PLL capture range, but only for a signal where channel status sampling information does not change,. The calculation result can be read from CCB address 0xEB and output to registers DO4 to DO7 and DO8 to DO15. Registers DO4 through DO7 hold the encoded result, while DO8 through DO15 hold the calculation value. The sampling frequencies that can be calculated are greater than 24kHz as the calculation count value is output in 8-bit units. For details, see section Micro-controller Interface.
ERROR OUTPUT PROCESSING
LOCK ERROR, DATA ERROR OUTPUT (RERR)
An error flag RERR is output when a PLL lock error or a data error occurs. Non-PCM data reception can be treated as an error with the RESEL setting. The RERR output conditions are set using RESTA. Since the PLL status can be output at any time, the PLL status can be monitored even when the clock source is XIN.
w
PP Rev 1.1 April 2004 27
WM8802
PLL LOCK ERROR
Product Preview
The PLL becomes unlocked for input data that has lost bi-phase modulation regularity or input data where preambles B, M, and W cannot be detected. RERR goes High during the occurrence of a PLL lock error and returns to Low when data demodulation returns to normal. High is maintained between 45ms and 300ms. The rising and falling edges of RERR are synchronized with RLRCK.
INPUT DATA PARITY ERROR
Input parity errors are detected if there are an odd number of parity bits in input data. RERR goes High indicating that the PLL is locked if an input parity error occurs 9 or more times in succession, It returns to Low after being High for between 45ms and 300ms. The error flag output format, for when an input parity error is output 8 times in succession, can be selected using REDER.
OTHER ERRORS
The channel status bits 24 to 27 (sampling frequency) are always read and the data of the previous block is compared with the current data, even if RERR goes Low. The input data sampling frequency is also calculated from the fs clock extracted from the input data and fs calculation value comparison is performed as described above. RERR is instantly made High if a difference is detected, and the same processing as for PLL lock errors is performed. The PLL causes a lock error when the sampling frequency changes as described above. FSERR can be set to support sources with a variable sampling frequency (for example a CD player with a variable pitch function). No error flag is output if the sampling frequency variation falls within the PLL capture range while using FSERR. For input data within the reception range, FSERR prevents fs calculation results from being reflected in the error flag that is set using FSLIM[0:1]. RERR goes Low if the PLL status changes to the locked status. RERR changes to a High output upon detection of non-PCM data input if RESEL is set. The PLL locked status and various output clocks continue to be output according to the input data but the output data is muted.
DATA PROCESSING UPON ERROR OCCURRENCE (LOCK ERROR, PARITY ERROR)
The data processing after the occurrence of an error is described below. If 8 or fewer input parity errors occur in succession transfer data is replaced by the data saved to L-ch and R-ch in the previous frame of PCM audio data. The error data is output as it is if the transfer data is non-PCM data. Non-PCM data is based on data detected prior to occurrence of an input parity error when bit 1 of the channel status goes High. Output data is muted upon occurrence of a PLL lock error or when a parity error occurs 9 or more times in succession. For the channel status, the data of the previous block is held in 1-bit units when a parity error occurs.
w
PP Rev 1.1 April 2004 28
Product Preview
WM8802
PLL LOCK ERROR INPUT PARITY ERROR (A) INPUT PARITY ERROR (B) INPUT PARITY ERROR (C)
DATA
RDATA output fs calculation result Channel status Validity flag User data
Low Low Low Low Low
Low Output Low Low Low
Previous value data Output Previous value data Output Output
Output Output Previous value data Output Output
Table 11 Data Processing upon Error Occurrence Notes: 1. Input parity error (A): Occurs 9 or more times in succession 2. Input parity error (B): Occurs 8 or fewer times in succession, in case of audio data 3. Input parity error (C): Occurs 8 or fewer times in succession, in case of non-PCM burst data
Figure 20 shows an example of data processing upon occurrence of a parity error.
An error occurs a single time
Input Data
L-1 R-1 L-2 R-2 L-3 R-3 L-4 R-4 L-5 R-5 L-6 R-6 L-7 R-7 L-8 R-8
RERR
RLRCK RDATA
L-0 R-0 L-1 R-0 L-2 R-2 L-2 R-2 L-2 R-2 L-2 R-2 L-2 R-2
R-ch L-ch R-ch .... Previous data value Previous data value Muted after 9 or more consecutive errors
Figure 20 Data Processing Upon Parity Error Occurrence
PROCESSING DURING ERROR RECOVERY
PLL becomes locked and data demodulation begins when preambles B, M and W are detected. RDATA output data is output from the RLRCK edge after RERR goes Low.
w
PP Rev 1.1 April 2004 29
WM8802
Product Preview
45 ms to 300 ms RERR OK Internal clock signal RLRCK
RDATA
Data
Output starts from the RLRCK edge immediately after RERR flag is lowered
Figure 21 Internal Lock Signal
CHANNEL STATUS OUTPUT
DATA CATEGORY SPECIFICATION BIT 1 OUTPUT ( AUDIO )
The AUDIO pin outputs bit 1 of the channel status indicating that the input bi-phase data is PCM audio data. AUDIO status is immediately output upon detection of RERR even during High output. An output ORed with IEC61937 or the DTS-CD/LD detection flag is also possible with AOSEL.
AUDIO
OUTPUT CONDITIONS
0 1
Table 12 AUDIO Output
PCM audio data (CS bit 1 = Low) Non-audio data (CS bit 1 = High
EMPHASIS INFORMATION OUTPUT (EMPHA)
The EMPHA pin output indicates that the signal has the presence or absence of 50/15s emphasis for consumer and broadcast studio. EMPHA status is immediately output upon detection of RERR even during High output.
EMPHA
OUTPUT CONDITIONS
0 1
Table 13 EMPHA Output
No pre-emphasis 50/15 s pre-emphasis
w
PP Rev 1.1 April 2004 30
Product Preview
WM8802
OTHER OUTPUTS
VALIDITY FLAG OUTPUT (VO)
The validity flag can be output from the AUDIO /VO pin by selecting the AUDIO /VO output with VOSEL. The validity flags transferred at each sub-frame are output as indicated in the timing diagram below.
VO
OUTPUT CONDITIONS
0 1
Table 14 VO Output
No error (not burst data) Error (May be burst data)
RLRCK
L1
R1
L2
R2
L3
RBCK
UO
V-L1
V-R1
V-L2
V-R2
V-L3
Figure 22 Validity Flag Output Timing
USER DATA OUTPUT (UO)
User data can be output from the EMPHA/UO pin by selecting the EMPHA/UO output using UOSEL. The user data transferred at each sub-frame is output as indicated in the following timing diagram.
RLRCK
RBCK
UO
U
U
U
U
U
Figure 23 User Data Output Timing
w
PP Rev 1.1 April 2004 31
WM8802
IEC61937, DTS-CD/LD DETECTION FLAG OUTPUT
Product Preview
A function to output IEC61937 and DTS-CD/LD detection flags for non-PCM data is provided. When the UNPCM non-PCM signal output setting is selected, as well as an indication on the AUDIO pin, an interrupt signal is output from INT upon detection of an IEC61937 or DTS-CD/LD sync signal. Non-PCM signal details can be known by reading this information from the output register. The IEC61937 sync signal is detected and output when channel status bit 1 is non-PCM data ("1"). The IEC61937 sync signal is not output if bit 1 is PCM data ("0"). DTS-CD/LD sync signal detection is done based on the sync pattern and the base frequency. In the case of DTS-ES data detection, output is performed when the DTS5.1 channel sync signal is detected and the DTS-ES sync pattern has been verified. The IEC61937 and DTS-CD/LD detection flags are cleared when fs has changed or upon occurrence of a PLL lock error or data error. Since the DTS sync signal is provided within the audio data, digital data with the same code as the DTS sync signal may in rare cases exist for regular CD/LD records that are not recorded in the DTS format. Protection using the sync pattern or base frequency is provided so that such data is not misinterpreted as DTS-CD/LD detection flags. The detection sequence is shown below.
Input data
Bit 1 detection Bit 1 = 1
YES
NO
PaPb detection
YES
NO
DTS-CD/LD SYNC detection
YES
NO
Frame counter start
Frame counter reset
Frame counter start
Frame counter reset
PaPb detection during 4096 frames
YES
NO
Frame count NO 512, 1024, 2048, 4096 SYNC detection
YES
IEC61937 flag OK INT lowered
IEC61937 flag
DTS-CD/LD flag OK INT lowered
DTS-CD/LD flag not valid INT lowered
PaPb detection during 4096 frames
YES
*
NO
Frame count hold x2 count detection expansion
* Depending on the frame count,
the subsequent detection count is expanded up to x2. Periodic fluctuation is supported.
IEC61937 data hold
*
Frame count 512, 1024, 2048, 4096 NO SYNC detection
1st count 512 1024 2048 4096
=> => => =>
2nd count 512 or 1024 1024 or 2048 2048 or 4096 4096
YES
DTS-CD/LD data hold
Figure 24 Detection Flag Output Flowchart
w
PP Rev 1.1 April 2004 32
Product Preview
WM8802
DESCRIPTION OF MODULATION FUNCTION AND GENERAL-PURPOSE I/OS
MODULATION FUNCTION USAGE METHOD
INITIAL SETTING
The modulation function and general-purpose I/O port function cannot be used simultaneously because they share the same pins. INT should be pulled down with a 10k resistor to select the modulation function. For the setting method, see page 10. In the initial setting, the modulation function is stopped. The modulation function can be set using TXOPR.
DATA OUTPUT (TMCK, TBCK, TLRCK, TDATA, TXO)
Bi-phase modulated data is output from TXO by inputting a 256fs clock to TMCK, 64fs clock to TBCK, fs clock to TLRCK and audio data to TDATA. The polarity of the TLRCK clock is set using TXLRP. Input data can be modulated in the sampling range of 32kHz to 192kHz, TMCK rate of 4MHz to 25MHz and up to 24 bit data. The initial value for the input data format is I2S. Switching to Left Justified format is set using TXDFS. For the channel status, the first 48 bits of data can be written with the micro-controller interface. TXO is fixed to Low by setting TXOPR to Stop.
1/fs
LEFT CHANNEL TLRCK (I)
RIGHT CHANNEL
TBCK (I)
1 BCLK 1 BCLK 3 n-2 n-1 n 1 2 3 n-2 n-1 n
TDATA (I)
1
2
MSB
16 to 24 bits
LSB
MSB
16 to 24 bits
LSB
Figure 25 Data Input Timing - I2S Data Input
w
PP Rev 1.1 April 2004 33
WM8802
1/fs
Product Preview
LEFT CHANNEL TLRCK (I)
RIGHT CHANNEL
TBCK (I)
TDATA (I)
1
2
3
n-2 n-1
n
1
2
3
n-2 n-1
n
MSB
16 to 24 bits
LSB
MSB
16 to 24 bits
LSB
Figure 26 Data Input Timing - Left Justified Data Input
VALIDITY FLAG INPUT (VI)
Validity flags can be input from RX5/VI by switching the RX5/VI input contents with VISEL. The validity flag write timing is shown below. The validity flag can be written with the micro-controller interface but port settings have priority. Writing validity flags with the micro-controller interface is done using VMODE.
RX5/VI
OUTPUT CONDITIONS
0 1
Table 15 RX5/V1 Input
No error Error
TLRCK
L1
R1
L2
R2
L3
TBCK
VI
V-L1
V-R1
V-L2
V-R2
V-L3
Internal latch signal
Figure 27 Validity Flag Input Timing
w
PP Rev 1.1 April 2004 34
Product Preview
WM8802
USER DATA INPUT (UI)
User data can be input from RX6/UI by switching the RX6/UI input contents using UISEL. The user data write timing is shown below.
TLRCK
TBCK
UI
U
U
U
U
U
Internal latch signal
Figure 28 User Data Input Timing
MODULATED OUTPUT OF SDIN INPUT DATA
SDIN input data is modulated and can be output from TXO and RXOUT. The setting to modulate SDIN input data is set using TDTSEL. A clock should be input to synchronize SDIN to TMCK, TBCK and TLRCK. Match the SDIN input data format to the setting used during modulation processing.
MONAURAL OUTPUT
It is possible to output the data of only one input data channel at the input rate of fs/2 with TXMOD[0:1]. This operation maintains the bi-phase modulation regularity but there is no correlation between the data and preambles. Channel status write is synchronized with the output rate. The validity flag and user data are written in frame units. Input the same data to the L and R channels.
TLRCK
TDATA
R0
L1
R1
L2
R2
L3
R3
L4
R4
L5
R5
TXO [1]
Ln
M
L0
W
L1
M
L2
W
L3
M
L4
TXO [2]
Rn
M
R0
W
R1
M
R2
W
R3
M
R4
Figure 29 Modulation of Data of Single Channel
w
PP Rev 1.1 April 2004 35
WM8802
GENERAL PURPOSE I/O (GPIO0, GPIO1, GPIO2, GPIO3, GPIOEN)
INITIAL SETTINGS
Product Preview
The modulation function and general-purpose parallel I/O's share the same pins and therefore cannot be used simultaneously. INT should be pulled down with a 10k resistor to use the general-purpose I/O's. For the setting method, see page 10. The general-purpose parallel I/O output function performs parallel conversion of the serial data input from the micro-controller interface and outputs the resulting data from GPIO0 GPIO1, GPIO2 and GPIO3. The input function saves the parallel data input to GPIO0, GPIO1, GPIO2, and GPIO3 to internal registers and reads the contents of these registers with the micro-controller interface. It is not possible to mix the 4 bit general-purpose I/O's as inputs and outputs at the same time. Switching between input and output is done using GPIOEN The general-purpose I/Os all become input pins when GPIOEN is High and all output pins when GPIOEN is Low.
INPUT/OUTPUT SETTINGS
Data handling for general-purpose I/O is performed using the micro-controller interface and write/read registers. General-purpose I/O write settings (Micro-controller Write register General-purpose I/O output) 1. 2. Set GPIOEN to Low to output data from general-purpose I/O's. Set the data to be output to CCB address 0xE8, command address 0x10 and input registers DI12 to DI15. During write operation, make sure "0" is written to modulation function setting registers DI8 to DI11. The data written to PI0 to PI3 is output from the general-purpose I/O's.
3.
4.
General-purpose I/O read settings (General-purpose I/O input Read register Micro-controller) 1. 2. 3. Set GPIOEN to High to input data to general-purpose I/O's. The input data is saved to CCB address 0xEB and output registers DO0 to DO3. Data can be sent to the micro-controller by reading GPO0 to GPO3.
w
PP Rev 1.1 April 2004 36
Product Preview
WM8802
MICRO-CONTROLLER INTERFACE ( INT , CL, CE, DI, DO)
DESCRIPTION OF MICRO-CONTROLLER INTERFACE
INTERRUPT OUTPUT ( INT )
Interrupts are output when a change has occurred in the PLL lock status or output data information. Interrupt output is determined by the register that selects the interrupt source, the INT pin that outputs that state transition and the registers that store the interrupt source data. When INT is set output High, the occurrence of an interrupt will set INT output Low. INT returns High after interrupt Low as dictated by the INTOPF setting. INTOPF can be set to hold the Low pulse for a certain period and then clear it (to High) or clear it at the same time that the output register is read. The interrupt sources can be selected from among the following items in Table 16. Multiple sources can be selected at the same time with the contents of CCB address 0xE8 and command address 0x08. INT outputs the result of ORing (addition) the selected interrupt sources.
INT output = (selected source 1) + (selected source 2) + ... + (selected source n)
NO.
COMMAND NAME
DESCRIPTION
1 2 3 4 5 6 7 8
ERROR INDET FSCHG CSRNW UNPCM PCRNW SLIPO EMPF
Output when RERR pin status has changed Output when input data pin status has changed (Oscillation amplifier operation condition) Output when input fs calculation result has changed. (Output amplifier condition) Output when channel status data of first 48 bits has changed Output when AUDIO pin status has changed Output when burst preamble Pc has been updated Output when data is read twice during slave setting and missing data is detected Output when emphasis information has changed
Table 16 Interrupt Source Setting Contents
The set interrupt source contents are saved to output registers DO8 to DO15 of CCB address 0xEA. The status of the RERR and AUDIO pins is output when the read registers for source items 1 and 5 are read. Except for source items 1 and 5, other data is saved to the registers upon occurrence of an interrupt source. The oscillation amplifier must be set to the continuous operation mode for source items 2 and 3 when monitoring is performed even while the PLL is locked . Following the occurrence of an interrupt from INT , the interrupt is cleared at the same time that the output registers 0xEA is read. In the interrupt Low pulse output mode the INT pulse width is between 1/2fs and 3/2fs for one interrupt pulse.
CCB FORMAT
Function settings as well as information writing and reading are performed by the micro-controller interface. The data format of the micro-controller interface conforms to Sanyo's original serial bus format (CCB). Tri-state instead of open-drain is employed for the data output format. Data input/output is performed following CCB address input. See the input/output timing chart
w
PP Rev 1.1 April 2004 37
WM8802
REGISTER INPUT/OUTPUT CONTENTS R/W CCB ADDRESS B0 B1 B2 B3 A0 A1
Product Preview
A2 A3
Function setting data input CS data input Interrupt data output fs data output CS data output Pc data output
write write read read read read
0xE8 0xE9 0xEA 0xEB 0xEC 0xED
0 1 0 1 0 1
0 0 1 1 0 0
0 0 0 0 1 1
1 1 1 1 1 1
0 0 0 0 0 0
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
Table 17 Relationship between Register Input/Output Contents and CCB Addresses
DATA WRITE METHOD
Input is performed in the following sequence: CCB addresses of A0 to A3 and B0 to B3, chip addresses of DI0 and DI1, command addresses of DI4 to DI7 and data of DI8 to DI15. DI2 and DI3 are reserved for the system and should always be set to "0". For the chip addresses, DI0 corresponds to CAL (low-order) and DI1 corresponds to CAU (highorder).
DATA READ METHOD
Read data is output from DO. DO is in the high impedance state when CE is Low and begins outputting at the rising edge of CE after the register address is recognised. DO then returns to the high impedance state at the falling edge of CE. If DO outputs using multiple WM8802 units are to be shared the DO outputs of the WM8802 can be set to in a high impedance state using DOEN, This will prevent any misreading of registers from an unselected device.
INPUT/OUTPUT TIMINGS
CE
CL DI DO B0 B1 B2 B3 A0 A1 A2 A3 DI0 DI1 DI2 DI3 DI4 DI5 .... DI15
Hi-Z
Figure 30 Input Timing Chart (Normal, Low Clock)
w
PP Rev 1.1 April 2004 38
Product Preview
WM8802
CE CL
DI
B0
B1
B2
B3
A0
A1
A2
A3
DI0 DI1 DI2 DI3 DI4 DI5 ....
DI15
DO
Hi-Z
Figure 31 Input Timing Chart (Normal, High Clock)
CE
CL DI DO B0 B1 B2 B3 A0 A1 A2 A3 DO1 DO2 DO3 DO4 .... .... DOn
Hi-Z
DO0
Figure 32 Output Timing Chart (Normal, Low Clock)
CE CL
DI
B0
B1
B2
B3
A0
A1
A2
A3 DO0 DO1 DO2 DO3 DO4 .... .... .... DOn
DO
Hi-Z
Figure 33 Output Timing Chart (Normal, High Clock)
w
PP Rev 1.1 April 2004 39
WM8802
WRITE DATA
WRITE COMMAND LIST
A list of the write commands is shown below. To write the commands shown in the following table, set the CCB address to 0xE8.
Product Preview
ADD.
SETTING ITEMS
DI15
DI14
DI13
DI12
DI11
DI10
DI9
DI8
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
All system setting Demodulation system setting Master clock R system output clock S system output clock Source switch Data input/output Output format setting INT source selection RERR condition setting Modulation system setting Modulation data setting TEST TEST TEST TEST
TESTM 0
0 0
TXOPR FSLIM1 XRBCK1 XSBCK1 RDTSTA ROSEL1 RLRCKP PCRNW FSERR P11 TXMOD1 0 0 0 0
RXOPR FSLIM0 PLLOPR XRBCK0 XSBCK0 RDTSEL ROSEL0 RBCKP UNPCM RESTA P10 TXMOD0 0 0 0 0
INTOPF RXMON XMSEL1 XRSEL1 0 ULSEL 0 CSRNW XTWT1 0 TXMUT 0 0 0 0
0 AOSEL XMSEL0 XRSEL0 RCKSEL RISEL2 OFSEL2 FSCHG XTWT0 VMODE TDTSEL 0 0 0 0
DOEN VOSEL XINSEL PRSEL1 PSBCK1 OCKSEL RISEL1 OFSEL1 INDET REDER VISEL TWLRP 0 0 0 0
SYSRST UOSEL PLLSEL PRSEL0 PSBCK0 SELMTD RISEL0 OFSEL0 ERROR RESEL UISEL TXDFS 0 0 0 0
AMPOPR1 AMPOPR0 EXSYNC XRLRCK1 XRLRCK0 XSLRCK1 XSLRCK0 0 RXOFF SLRCKP EMPF ERWT1 P13 0 0 0 0 0 RDTMUT ROSEL2 SBCKP SLIPO ERWT0 P12 0 0 0 0 0
PSLRCK1 PSLRCK0
The shaded parts in command area DI8 to DI15 are reserved bits with an input "0". Command addresses 0x12 to 0x15 are reserved for testing purposes. Writing to these addresses is prohibited.
w
PP Rev 1.1 April 2004 40
Product Preview
WM8802
WRITE COMMAND DETAILS
All system settings:
REGISTER ADDRESS
DI7
DI6
DI5
DI4
DI3
DI2
DI1
DI0
CCB address: 0xE8; Command address: 0
0
DI15
0
DI14
0
DI13
0
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
TESTM
SYSRST
0
TXOPR
RXOPR
INTOPF
0
DOEN
SYSRST
System reset 0: Do not reset (initial value) 1: Reset circuits other than command registers DO output setting 0: Output (initial value) 1: Always high impedance state (read disabled)
DOEN
INTOPF
INT pin output setting
0: Output Low level during source occurrence (initial value) 1: Output Low pulse during source occurrence
RXOPR
Demodulation function operation setting 0: Operate (initial value) 1: Stop Modulation function operation setting 0: Stop (initial value) 1: Operate Test mode setting 0: Normal operation (initial value) 1: Enter test mode
TXOPR
TESTM
RBCK and SBCK output Low and RLRCK and SLRCK output High when reset through SYSRST or the demodulation function stop setting is performed with RXOPR.
w
PP Rev 1.1 April 2004 41
WM8802
DEMODULATION FUNCTION
System setting:
REGISTER ADDRESS DI7 DI6 DI5 DI4 DI3 DI2 DI1
Product Preview
DI0
CCB address: 0xE8; Command address: 1
0
DI15
0
DI14
0
DI13
1
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
0
0
FSLIM1
FSLIM0
RXMON
AOSEL
VOSEL
UOSEL
UOSEL
EMPHA/UO pin setting 0: EMPHA emphasis output (initial value) 1: UO user data output
AUDIO /VO pin setting 0: AUDIO channel status bit 1 output (initial value) 1: VO validity flag output
VOSEL
AOSEL
Output contents when AUDIO is set with AUDIO /VO pin 0: Channel status bit 1 read (initial value) 1: Channel status bit 1, IEC61937, DTS-CD/LD detection flag output Digital data input status monitoring function setting 0: Do not monitor data input status (initial setting) 1: Monitor data input status Setting of sampling frequency reception range for RX input signal 00: No limit (initial value) 01: fs 96kHz 10: fs 48kHz 11: Reserved
RXMON
FSLIM [1:0]
w
PP Rev 1.1 April 2004 42
Product Preview Master clock setting:
REGISTER ADDRESS DI7 DI6 DI5 DI4 DI3 DI2 DI1
WM8802
DI0
CCB address: 0xE8; Command address: 2
0
DI15
0
DI14
1
DI13
0
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
AMPOPR1 AMPOPR0
EXSYNC
PLLOPR
XMSEL1
XMSEL0
XINSEL
PLLSEL
PLLSEL
PLL lock frequency setting 0: 512fs (fs 96kHz commend) (initial value) 1: 256fs XIN input frequency setting 0: 12.288MHz (initial value) 1: 24.576MHz XMCK output frequency setting 00: 1/1 of XIN input frequency (initial value) 01: 1/2 of XIN input frequency 10: Reserved 11: Muted PLL (VCO) operation setting 0: Operate (initial value) 1: Stop PLL unused demodulation function (external synchronization function) setting 0: PLL usage normal operation (initial value) 1: PLL unused external synchronization operation (supply 256fs clock to TMCK) Oscillation amplifier operation setting 00: Automatic stopping of oscillation amplifier during PLL lock (initial value) 01: Normal continuous operation 10: Reserved 11: Stop
XINSEL
XMSEL [1:0]
PLLOPR
EXSYNC
AMPOPR [1:0]
If the PLL is stopped with PLLOPR during PLL lock, the output clocks are all muted.The muted status continues even if the PLL becomes unlocked. RERR goes to into error status, while the PLL is locked, if the permanent continuous operation setting is set using AMPOPR[0:1]. However, the RERR status can be maintained if no PLL error is output and if the sampling frequency changes when FSERR is set. Sampling frequency calculation is not performed when the oscillation amplifier automatic stop mode is set using AMPOPR[0:1]; even if the input sampling frequency changes within the capture range of the PLL and no lock error occurs. The input data sampling frequency and the fs calculation result may differ. However, if the channel status sampling frequency information is rewritten together with input data changes, this information is reflected to the error flag and fs calculation of the input data is performed. Since the oscillation amplifier continuous operation setting allows permanent fs calculation, sampling frequency changes are always reflected to the error flag.
w
PP Rev 1.1 April 2004 43
WM8802
R system output clock setting:
REGISTER ADDRESS DI7 DI6 DI5 DI4 DI3 DI2 DI1
Product Preview
DI0
CCB address: 0xE8; Command address: 3
0
DI15
0
DI14
1
DI13
1
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
XRLRCK1
XRLRCK0
XRBCK1
XRBCK0
XRSEL1
XRSEL0
PRSEL1
PRSEL0
PRSEL [1:0]
RMCK output frequency setting during PLL lock 00: 1/2 of PLLSEL setting frequency (initial value) 01: 1/1 of PLLSEL setting frequency 10: 1/4 of PLLSEL setting frequency 11: Muted RMCK output frequency setting during XIN source 00: 1/1 of XINSEL setting frequency (initial value) 01: 1/2 of XINSEL setting frequency 10: 1/4 of XINSEL setting frequency 11: Muted RBCK output frequency setting during XIN source 00: 3.072MHz output (initial value) 01: 6.144MHz output 10: 12.288MHz output 11: Muted RLRCK output frequency setting during XIN source 00: 48kHz output (initial value) 01: 96kHz output 10: 192kHz output 11: Muted
XRSEL [1:0]
XRBCK [1:0]
XRLRCK [1:0]
3.072MHz is output from RBCK if the RMCK frequency is set lower than RBCK when the XIN source is used.
w
PP Rev 1.1 April 2004 44
Product Preview S system output clock setting:
REGISTER ADDRESS DI7 DI6 DI5 DI4 DI3 DI2 DI1
WM8802
DI0
CCB address: 0xE8; Command address: 4
0
DI15
1
DI14
0
DI13
0
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
XSLRCK1
XSLRCK0
XSBCK1
XSBCK0
PSLRCK1
PSLRCK0
PSBCK1
PSBCK0
PSBCK [1:0]
SBCK frequency setting during PLL lock 00: 64fs output (initial value) 01: 128fs output 10: 32fs output 11: Muted SLRCK frequency setting during PLL lock 00: fs output (initial value) 01: 2fs output 10: fs/2 output 11: Muted SBCK frequency setting during XIN source 00: 3.072MHz output (initial value) 01: 6.144MHz output 10: 12.288MHz output 11: Muted SLRCK frequency setting during XIN source 00: 48kHz output (initial value) 01: 96kHz output 10: 192kHz output 11: Muted
PSLRCK [1:0]
XSBCK [1:0]
XSLRCK [1:0]
w
PP Rev 1.1 April 2004 45
WM8802
Clock source; RDA TA output setting:
REGISTER ADDRESS DI7 DI6 DI5 DI4 DI3 DI2 DI1
Product Preview
DI0
CCB address: 0xE8; Command address: 5
0
DI15
1
DI14
0
DI13
1
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
0
RDTMUT
RDTSTA
RDTSEL
0
RCKSEL
OCKSEL
SELMTD
SELMTD
Output clock source switching setting 0: Simultaneously switch R system and S system according to OCKSEL. (initial value) 1: Switch R system according to RCKSEL and fix S system to XIN. Clock source setting when SELMTD = 0 0: Use XIN clock as source during PLL lock. (initial value) 1: Use XIN clock as source regardless of PLL status. Clock source setting when SELMTD = 1 0: Use XIN clock as source during PLL lock. (initial value) 1: Use XIN clock as source regardless of PLL status. RDATA output setting during PLL unlock 0: Output SDIN data during PLL unlock. (initial value) 1. Mute during PLL unlock. RDATA output setting 0: According to RDTSEL (initial value) 1: Output SDIN input data regardless of PLL status. RDATA mute setting 0: Output data selected with RDTSEL. 1: Muted
OCKSEL
RCKSEL
RDTSEL
RDTSTA
RDTMUT
When the oscillation amplifier is set to permanent continuous operation using AMPOPR[0:1] or if changes are set not to be reflected to the error flag using FSERR, OCKSEL and RCKSEL can switch the clock source while maintaining the RERR status. However, RERR outputs an error during switching if none of these settings are performed. A clock synchronized to the SDIN input data is selected to input data to SDIN. The XIN source can be switched while maintaining the PLL locked status. However, since clock and data output switching can be set individually for each, it is recommended to select mute or SDIN data for the output data during XIN source switching. If AMPOPR[0:1] is set to automatically stop the oscillation amplifier during PLL locked, XIN source switching from the PLL locked status is executed only after the resonator is oscillating stably. Output data switching is also done at this time according to XIN source switching.
w
PP Rev 1.1 April 2004 46
Product Preview Digital data input/output port setting:
REGISTER ADDRESS DI7 DI6 DI5 DI4 DI3 DI2 DI1
WM8802
DI0
CCB address: 0xE8; Command address: 6
0
DI15
1
DI14
1
DI13
0
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
RXOFF
ROSEL2
ROSEL1
ROSEL0
ULSEL
RISEL2
RISEL1
RISEL0
RISEL [2:0]
Data demodulation input pin setting 000: RX0 selection (initial value) 001: RX1 selection 010: RX2 selection 011: RX3 selection 100: RX4 selection (However, VI input is performed when VISEL is set.) 101: RX5 selection (However, UI input is performed when UISEL is set.) 110: RX6 selection 111: Modulation function output (TXO output data) selection Input pin setting via PLL unlock 0: Normal setting (initial value) 1: Input data switch setting via PLL unlock RXOUT output data setting 000: RX0 input data (initial value) 001: RX1 input data 010: RX2 input data 011: RX3 input data 100: RX4 input data 101: RX5/VI input data 110: RX6/UI input data 111: Modulation function output (TXO output data) selection RXOUT output status setting 0: ROSEL0, ROSEL1, ROSEL2 selection data output (initial value) 1: Low fixed output
ULSEL
ROSEL [2:0]
RXOFF
ULSEL can be set when the oscillation amplifier is set to continuous operation with AMPOPR[0:1]. It does not operate normally when the oscillation amplifier is stopped.
w
PP Rev 1.1 April 2004 47
WM8802
Output data format setting:
REGISTER ADDRESS DI7 DI6 DI5 DI4 DI3 DI2 DI1
Product Preview
DI0
CCB address; 0xE8; Command address: 7
0
DI15
1
DI14
1
DI13
1
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
SLRCKP
SBCKP
RLRCKP
RBCKP
0
OFSEL2
OFSEL1
OFSEL0
OFSEL [2:0]
Audio data output format setting 000: I2S data output (initial value) 001: Left Justified data output 010: 24 bit Right Justified data output (master mode only) 011: 20 bit Right Justified data output (master mode only) 100: 16 bit Right Justified data output (master mode only) 101: Reserved 110: Reserved 111: Reserved RBCK output polarity setting 0: Falling RDATA data change (initial value) 1: Rising RDATA data change RLRCK output polarity setting 0: Low period: L-channel data; High period: R-channel data (initial value) 1: Low period: R-channel data; High period: L-channel data SBCK output polarity setting 0: Falling RDATA data change (initial value) 1: Falling RDATA data change SLRCK output polarity setting 0: Low period: L-channel data; High period: R-channel data (initial value) 1: Low period: R-channel data; High period: L-channel data
RBCKP
RLRCKP
SBCKP
SLRCKP
The data output format and RLRCK output polarity can be set independently. The RLRCH polarity is set according to each data output format.
w
PP Rev 1.1 April 2004 48
Product Preview
WM8802
INT output contents setting:
REGISTER ADDRESS
DI7
DI6
DI5
DI4
DI3
DI2
DI1
DI0
CCB address: 0xE8; Command address: 8
1
DI15
0
DI14
0
DI13
0
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
EMPF
SLIPO
PCRNW
UNPCM
CSRNW
FSCHG
INDET
ERROR
ERROR
RERR signal output setting 0: Do not output. (initial value) 1: Output RERR pin status change. Input data detection output setting 0: Do not output. (initial value) 1: Output input data pin status change. PLL lock frequency calculation result update flag output setting 0: Do not output. (initial value) 1: Output PLL lock frequency calculation result update flag. First 48 channel status bits update flag output setting 0: Do not output. (initial value) 1: Output first 48 channel status bits update flag. Non-PCM data detection change flag output setting 0: Do not output. (initial value) 1: Output AUDIO pin status change. Burst preamble Pc update flag output setting 0: Do not output. (initial value) 1: Output burst preamble Pc update flag. Slip signal output setting during slave operation 0: Do not output. (initial value) 1: Read data output twice and output data loss detection flag. Emphasis detection flag output setting 0: Do not output. (initial value) 1: Output emphasis detection flag.
INDET
FSCHG
CSRNW
UNPCM
PCRNW
SLIPO
EMPF
The channel status update flag compares the first 48 bits of data of the previous block with those of the current block and a flag is output when they are the same. The burst preamble Pc update flag also compares the 16 bits of data of the previous block with those of the current data and an update flag is output if they match.
w
PP Rev 1.1 April 2004 49
WM8802
RERR output setting:
REGISTER ADDRESS DI7 DI6 DI5 DI4 DI3 DI2 DI1
Product Preview
DI0
CCB address: 0xE8, Command address: 9
1
DI15
0
DI14
0
DI13
1
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
ERWT1
ERWT0
FSERR
RESTA
XTWT1
XTWT0
REDER
RESEL
RESEL
RERR output contents setting 0: PLL lock error or data error (initial value) 1: PLL lock error or data error or non-PCM data 8 continuous times parity error flag output setting 0: Output during non-PCM data recognition. (initial value) 1: Output only during sub-frame for which error was generated. Clock switch wait time setting after PLL unlock 00: Clock switching after approx. 200s following oscillation amplifier start (initial value) 01: Clock switching after approx. 100s following oscillation amplifier start 10: Clock switching after approx. 50s following oscillation amplifier start 11: Clock switching after approx. 400s following oscillation amplifier start RERR output condition setting 0: Output permanent PLL status (Output PLL status even during XIN source) (initial status) 1: Forcibly output error (Set High forcibly to RERR) Setting of error flag output condition through fs change 0: Reflect fs changes to error flag. (initial value) 1: Do not reflect fs changes to error flag. RERR wait time setting after PLL lock 00: Error release preamble B after 48 counts. (initial value) 01: Error release preamble B after 24 counts. 10: Error release preamble B after 12 counts. 11: Error release preamble B after 6 counts.
REDER
XTWT [1:0]
RESTA
FSERR
ERWT [1:0]
Non-PCM data is reflected as data defined by AOSEL and matches the AUDIO pin output. Output data is muted if an error occurs due to non-PCM data RESEL. The RESTA setting is not reflected to the data and clock output pins. When FSERR is set the fs calculation result (when the oscillation amplifier is stopped) is not reflected. In this case, fs changes reflect only of channel status fs information. ERWT[0:1] defines the interval after which an RERR error is cancelled (Low) following a PLL lock. Do not perform this setting if cutting off of the beginning of data is a problem.
w
PP Rev 1.1 April 2004 50
Product Preview
WM8802
MODULATION FUNCTION
System setting, general-purpose I/O data input:
REGISTER ADDRESS
DI7
DI6
DI5
DI4
DI3
DI2
DI1
DI0
CCB address: 0xE8; Command address: 10
1
DI15
0
DI14
1
DI13
0
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
PI3
PI2
PI1
PI0
0
VMODE
VISEL
UISEL
UISEL
RX6/UI pin setting 0: RX6 demodulation function data input (initial value) 1: UI modulation function user data input RX5/VI pin setting 0: RX5 demodulation function data input (initial value) 1: VI modulation function validity flag input Modulation function V flag setting 0: Write 0. (initial value) 1: Write 1. Data input during general-purpose I/O GPIO0 output setting 0: Output L. (initial value) 1: Output H. Data input during general-purpose I/O GPIO1 output setting 0: Output L. (initial value) 1: Output H. Data input during general-purpose I/O GPIO2 output setting 0: Output L. (initial value) 1: Output H. Data input during general-purpose I/O GPIO3 output setting 0: Output L. (initial value) 1: Output H.
VISEL
VMODE
GPI0
GPI1
GPI2
GPI3
Set GPIOEN to Low if using general-purpose I/Os GPIO0 to GPIO3 as outputs.
w
PP Rev 1.1 April 2004 51
WM8802
Digital audio input/output setting:
REGISTER ADDRESS DI7 DI6 DI5 DI4 DI3 DI2 DI1
Product Preview
DI0
CCB address: 0xE8; Command address: 11
1
DI15
0
DI14
1
DI13
1
DI12
0
DI11
0
DI10
CAU
DI9
CAL
DI8
0
0
TXMOD1
TXMOD0
TXMUT
TDTSEL
TXLRP
TXDFS
TXDFS
TDATA input data format setting 0: I2S data input (initial value) 1: MSB-first front-loading data input TLRCK input clock polarity setting 0: Low period: L-channel data; High period: R-channel data (initial value) 1: Low period: R-channel data; High period: L-channel data Input data setting 0: TDATA input data (initial value) 1: SDIN input data TXO output setting 0: Conversion data output (initial value) 1: Low fixed output Mode setting 00: Normal operation (L-channel, R-channel stereo mode) (initial value) 01: L-channel continuous (time-division mode) 10: R-channel continuous (time-division mode) 11: reserved
TXLRP
TDTSEL
TXMUT
TXMOD [1:0]
CHANNEL STATUS DATA WRITE
CCB address is set to 0xE9 for channel status data write in the modulation function. DI0 to DI7 are not channel status bits. Always input a chip address to DI0 and DI1. Input "0" to DI2, DI3 and DI7 because they are reserved for the system. Select the channel status data write length with DI4 to DI6. Up to 48 bits can be set, in 8-bit units. After CE becomes Low, input data is written from preamble B.
DI6
0 0 0 0
DI5
0 0 1 1
DI4
0 1 0 1
INPUT TABLE DATA RANGE
Bit 0 to bit 7 Bit 0 to bit 15 Bit 0 to bit 23 Bit 0 to bit 31
DI6
1 1 1 1
DI5
0 0 1 1
DI4
0 1 0 1
INPUT TABLE DATA RANGE
Bit 0 to bit 39 Bit 0 to bit 47 Reserved Reserved
Table 18 Relation between Input Data Length Setting Register and Data Length
w
PP Rev 1.1 April 2004 52
Product Preview
WM8802
BIT NO. DESCRIPTION REGISTER BIT NO. DESCRIPTION
REGISTER
DI0 DI1 DI2 DI3 DI4 DI5 DI6 DI7 DI8 DI9 DI10 DI11 DI12 DI13 DI14 DI15 DI16 DI17 DI18 DI19 DI20 DI21 DI22 DI23 DI24 DI25 DI26 DI27
CAL CAU 0 0 0 0 0 0 Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15 Bit 16 Bit 17 Bit 18 Bit 19
Lower chip address Higher chip address Reserved Data length setting
DI28 DI29 DI30 DI31 DI32 DI33 DI34
Bit 20 Bit 21 Bit 22 Bit 23 Bit 24 Bit 25 Bit 26 Bit 27 Bit 28 Bit 29 Bit 30 Bit 31 Bit 32 Bit 33 Bit 34 Bit 35 Bit 36 Bit 37 Bit 38 Bit 39 Bit 40 Bit 41 Bit 42 Bit 43 Bit 44 Bit 45 Bit 46 Bit 47
Channel number
Sampling frequency
Reserved Application Control
DI35 DI36 DI37 DI38 DI39 DI40 DI41
Clock accuracy Not defined Word length
Not defined Category code
DI42 DI43 DI44 DI45 DI46 DI47 DI48 DI49 DI50 DI51
Not defined
Source number
DI52 DI53 DI54 DI55
Table 19 Input Setting - Modulation Function Channel Status Data Setting
READ DATA
READ COMMAND LIST
*
The following items can be read. Digital data input status monitor output Interrupt data output General-purpose I/O input data output fs calculation result, fs counter data (8 bit) output First 48 channel status bit output Burst preamble Pc data output
*
CCB address 0XEB and output registers DO16 to DO23 are for testing.
w
PP Rev 1.1 April 2004 53
WM8802
READ REGISTER NAME
DO0 DO1 DO2 DO3 DO4 DO5 DO6 DO7 DO8 DO9 DO10 DO11 DO12 DO13 DO14 DO15 DO16 DO17 DO18 DO19 DO20 DO21 DO22 DO23 DO24 ... DO46 DO47
Product Preview
0XEA
RXDET0 RXDET1 RXDET2 RXDET3 RXDET4 RXDET5 RXDET6 RXDET7 OERROR OINDET OFSCHG OCSRNW OUNPCM OPCRNW OSLIPO OEMPF CSBITI IEC1937 DTS51 DTSES F0512 F1024 F2048 F4096 - - - -
0XEB
GPO0 GPO1 GPO2 GPO3 FSC0 FSC1 FSC2 FSC3 FSDAT0 FSDAT1 FSDAT2 FSDAT3 FSDAT4 FSDAT5 FSDAT6 FSDAT7 TEST0 TEST1 TEST2 TEST3 TSET4 TEST5 TEST6 TEST7 - - - -
0XEC
CS bit 0 CS bit 1 CS bit 2 CS bit 3 CS bit 4 CS bit 5 CS bit 6 CS bit 7 CS bit 8 CS bit 9 CS bit 10 CS bit 11 CS bit 12 CS bit 13 CS bit 14 CS bit 15 CS bit 16 CS bit 17 CS bit 18 CS bit 19 CS bit 20 CS bit 21 CS bit 22 CS bit 23 CS bit 24 ... CS bit 46 CS bit 47
0XED
Pc bit 0 Pc bit 1 Pc bit 2 Pc bit 3 Pc bit 4 Pc bit 5 Pc bit 6 Pc bit 7 Pc bit 8 Pc bit 9 Pc bit 10 Pc bit 11 Pc bit 12 Pc bit 13 Pc bit 14 Pc bit 15 - - - - - - - - - - - -
Table 20 Read Register 1 (Input detection, interrupt flag, IEC61937 flag, DTS flag)
w
PP Rev 1.1 April 2004 54
Product Preview
WM8802
READ REGISTER OUTPUT CONTENTS
REGISTER ADDRESS
CCB address: 0XEA
DO7
RXDET7
DO6
RXDET6
DO5
RXDET5
DO4
RXDET4
DO3
RXDET3
DO2
RXDET2
DO1
RXDET1
DO0
RXDET0
RXDET0
RX0 input detection 0: No input data to RX0 1: Input data to RX0 RX1 input detection 0: No input data to RX1 1: Input data to RX1 RX2 input detection 0: No input data to RX2 1: Input data to RX2 RX3 input detection 0: No input data to RX3 1: Input data to RX3 RX4 input detection 0: No input data to RX4 1: Input data to RX4 RX5 input detection 0: No input data to RX5 1: Input data to RX5 RX6 input detection 0: No input data to RX6 1: Input data to RX6 Modulation function output TXO data detection 0: No data to modulation function output TXO 1: Data to modulation function output TXO
RXDET1
RXDET2
RXDET3
RXDET4
RXDET5
RXDET6
RXDET7
For RXDET0 to RXDET7 read, RXMON must be set to High first.
w
PP Rev 1.1 April 2004 55
WM8802
READ REGISTER OUTPUT CONTENTS
REGISTER ADDRESS DO15 DO14 DO13 DO12 DO11 DO10 DO9
Product Preview
DO8
CCB address; 0xEA
DEMPF
OSLIPO
OPCRNW
OUNPCM
OCSRNW
OFSCHG
OINDET
OERROR
OERROR
RERR output (Output status during read) 0: No transfer error in PLL locked status 1: Transfer error in PLL unlocked status Data input pin status change (Clear following read) 0: No change in data input pin status 1: Change in data input pin status Input fs calculation update result (clear following read) 0: No input fs calculation update 1: Input fs calculation update First 48 bit channel status update result (Clear following read) 0: No update 1: Update AUDIO output (Output of status during read) 0: Non-PCM signal not detected 1: Non-PCM signal detected Burst preamble Pc update result (Clear following read) 0: No update 1: Update Read data twice and detect data loss during slave operation (Clear following read) 0: No detection 1: Two reads, lost data detected Channel status emphasis detection (Output status during read) 0: No pre-emphasis 1: 50/15 s pre-emphasis
OINDET
OFSCHG
OCSRNW
OUNPCM
OPCRNW
OSLIPO
OEMPF
The status of RERR and AUDIO is read according to RESEL and AOSEL settings regardless of the INT output setting from OERROR and OUNPCM.
w
PP Rev 1.1 April 2004 56
Product Preview
WM8802
READ REGISTER OUTPUT CONTENTS
REGISTER ADDRESS
DO23
DO22
DO21
DO20
DO19
DO18
DO17
DO16
CCB address: 0xEA
F4096
F2048
F1024
F0512
DTSES
DTS51
IEC1937
CSBIT1
CSBIT1
Channel status bit 1 detection 0: PCM 1: Non-PCM IEC61937 burst preamble detection 0: Pa, Pb not detected 1: Pa, Pb detected DTS-CD/LD 5.1 channel sync signal detection 0: DTS-CD-LD sync signal not detected 1: DTS-CD-LD sync signal detected DTS ES-CD/LD 6.1 channel sync signal detection 0: DTS ES-CD/LD sync signal not detected 1: DTS ES-CD/LD sync signal detected DTS-CD/LD IEC60958 frame interval 0: Sync signal not 512 or 1024 frame interval 1: Sync signal is 512 or 1024 frame interval DTS-CD/LD IEC60958 frame interval 0: Sync signal not 1024 or 2048 frame interval 1: Sync signal is 1024 or 2048 frame interval DTS-CD/LD IEC60958 frame interval 0: Sync signal not 2048 or 4096 frame interval 1: Sync signal is 2048 or 4096 frame interval DTS-CD/LD IEC60958 frame interval 0: Sync signal not 4096 frame interval 1: Sync signal is 4096 frame interval
IEC1937
DTS51
DTSES
F0512
F1024
F2048
F4096
w
PP Rev 1.1 April 2004 57
WM8802
READ REGISTER 2 (GENERAL-PURPOSE I/O INPUT CONTENTS, FS CALCULATION RESULT, FS COUNTER DATA) READ REGISTER OUTPUT CONTENTS
REGISTER ADDRESS DO7 DO6 DO5 DO4 DO3 DO2 DO1
Product Preview
DO0
CCB address: 0xEB
FSC3
FSC2
FSC1
FSC0
GPO3
GPO2
GPO1
GPO0
GPO0
Read data output contents during general-purpose I/O GPO0 input setting 0: GPIO0 input = Low 1: GPIO0 input = High Read data output contents during general-purpose I/O GPIO1 input setting 0: GPIO1 input = Low 1: GPIO1 input = High Read data output contents during general-purpose I/O GPIO2 input setting 0: GPIO2 input = Low 1: GPIO2 input = High Read data output contents during general-purpose I/O GPIO3 input setting 0: GPIO3 input = Low 1: GPIO3 input = High Input data fs calculation result "xxxx": See code table.
GPO1
GPO2
GPO3
FSC [3:0]
FSC3
FSC2
FSC1
FSC0
TARGET FREQUENCY
CALCULATION RANGE (DESIGN VALUE) -
- - - 15.4k to 16.6kHz 21.2k to 22.9kHz 23.1k to 24.9kHz 30.8k to 33.3kHz 42.4k to 45.8kHz 46.2k to 49.9kHz 615k to 66.7kHz 85.4k to 91.7kHz 93.1k to 100.7kHz 122.9k to 1335kHz 170.7k to 180.7kHz 186.2k to 198.1kHz
0
0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
0
0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
0
0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Out of range
- - - 16kHz 22.05kHz 24kHz 32kHz 44.1kHz 48kHz 64kHz 88.2kHz 96kHz 128kHz 176.4kHz 192kHz
Table 21 Input fs Calculation Result Code Table (Ta = 25C, AVDD = DVDD = 3.3 V)
w
PP Rev 1.1 April 2004 58
Product Preview
WM8802
READ REGISTER OUTPUT CONTENTS
REGISTER ADDRESS
CCB address: 0xEB
DO15
FSDAT7
DO14
FSDAT6
DO13
FSDAT5
DO12
FSDAT4
DO11
FSDAT3
DO10
FSDAT2
DO9
FSDAT1
DO8
FSDAT0
FSDAT [7:0]
* *
fs counter data output
FSDAT [7:0] is the fs calculation counter value. The data length is 8 bits, FSDAT0 is LSB and FSDAT7 is MSB. The relation between the count value and fs is expressed by the following equation. fs = 6144/FSDAT (kHz)
* *
fs calculation is performed using a 6.144MHz clock so the calculation accuracy is determined by this clock. The calculation counter value is 8 bit output so the fs that can be calculated is higher than 24kHz.
READ REGISTER 3 (FIRST 48 CHANNEL STATUS BITS)
* * * * *
The first 48 channel status bits can be read with the demodulation function. The read channel status data is a LSB output. For read, CCB address is set to 0xEC. The channel status data cannot be updated after the CCB address is set. The relation between the read registers and the channel status data is shown below.
CONTENTS REGISTER BIT NO. CONTENTS
REGISTER
DO0 DO1 DO2 DO3 DO4 DO5 DO6 DO7 DO8 DO9 DO10 DO11 DO12 DO13 DO14 DO15 DO16 DO17 DO18 DO19 DO20 DO21 DO22 DO23
BIT NO.
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15 Bit 16 Bit 17 Bit 18 Bit 19 Bit 20 Bit 21 Bit 22 Bit 23
Application Control
DO24 DO25 DO26 DO27 DO28 DO29
Bit 24 Bit 25 Bit 26 Bit 27 Bit 28 Bit 29 Bit 30 Bit 31 Bit 32 Bit 33 Bit 34 Bit 35 Bit 36 Bit 37 Bit 38 Bit 39 Bit 40 Bit 41 Bit 42 Bit 43 Bit 44 Bit 45 Bit 46 Bit 47
Sampling frequency
Clock accuracy Not defined Word length
Not defined Category code
DO30 DO31 DO32 DO33 DO34 DO35 DO36 DO37 DO38 DO39
Not defined
Source number
DO40 DO41 DO42 DO43
Channel number
DO44 DO45 DO46 DO47
w
PP Rev 1.1 April 2004 59
WM8802
READ REGISTER 4 (BURST PREAMBLE PC DATA)
The burst preamble Pc data can be read with the demodulation function. The 16 bits of burst preamble Pc data are output as LSB. For read, the CCB address is set to OxED. The relation between the read register and burst preamble Pc data is shown below.
Product Preview
REGISTER
BIT NO.
CONTENTS
DO0 DO1 DO2 DO3 DO4 DO5 DO6 DO7 DO8 DO9 DO10 DO11 DO12 DO13 DO14 DO15
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
Data type
Reserved Error Data type dependent information
Bit stream number
w
PP Rev 1.1 April 2004 60
Product Preview
WM8802
BURST PREAMBLE PC FIELD
The burst preamble Pc field is shown below. For the latest information, check the standards issued by each licensee.
REGISTER
VALUE
CONTENTS
DO4 to 0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 to 26 27 28 29 to 31
NULL data Dolby AC-3 data Reserved Pause MPEG-1, layer 1 data MPEG-1, layer 2, 3 data, or non-extended MPEG-2 Extended MPEG-2 data Reserved MPEG-2, layer 1, low sampling rate MPEG-2, layer 2, 3, low sampling rate Reserved DTS type1 DTS type2 DTS type3 ATRAC ATRACK2/3 Reserved Reserved (MPEG-4, AAC data) MPEG-2, AAC data Reserved Reserved (fixed to "0") Error flag indicating effective burst payload Error flag indicating burst payload error Data type dependent information Bit stream No. (fixed to "0")
DO6, 5 DO7 DO12 to 8 DO15 to 13
Table 22 Burst Preamble Pc Field
0 0 1 0
w
PP Rev 1.1 April 2004 61
WM8802 RECOMMENDED EXTERNAL COMPONENTS
Product Preview
Microcontroller
Cl
Cl 24.576 MHz / 12.288 MHz Rd Rf Cc
EMPH/UO
Rp
RERR CKST INT
AUDIO/VO
DGND
XMCK
DVDD
36 DO 37 DI 38 Microcontroller CE 39 CL 40 XMODE 41 DGND 42 DVDD 43
35
34 33
32
31 30 29
28
27 26
DVDD
25 24 SDIN 23 SLRCK 22 SBCK 21 RDATA 20 RLRCK 19 DVDD DVDD Cc Analogue to Digital
Cc DVDD
WM8802
DGND
XOUT
Chip address setting Chip address setting Demodulation function master/slave setting Modulation/general-purpose I/O function selection
Rp Rp Rp
CcDVDD
XIN
18 DGND
TMCK/GPIO0 44 Analogue to Digital Digital Signal Processing TBCK/GPIO1 45 TLRCK/GPIO2 46 TDATA/GPIO3 47 TXO/GPIOEN 48
17 RBCK 16 RMCK 15 AGND Cc 14 AVDD 13 LPF R0 C0 C1 AVDD
Digital to Analogue
RX5/VI
RXOUT
RX6/UI
RX1
RX2
RX3
RX0
RX4
Coaxial Input
DGND
Ci Ri
Optical Input
Cc
DVDD DVDD
Cc
Figure 34 External Component Diagram
SAMPLE APPLICATION
A de-coupling capacitor (0.1 F) should be connected as close as possible to the power supply pin. Use a ceramic capacitor with high-frequency characteristics.. A capacitor with a low temperature coefficient should be used for the PLL loop filter.
w
DGND
DVDD
DVDD
1
2
3
4
5
6
7
8
9
10
11 12
PP Rev 1.1 April 2004 62
Product Preview
WM8802
RECOMMENDED EXTERNAL COMPONENTS VALUES
ELEMENT SYMBOL RECOMMENDED CONSTANT
APPLICATION
REMARK
Cc Rp C1 Rf Rd Ci Ri C0 C1 R0
0.1 F 10 k 1 pF to 33 pF 1 M 220 01 F 75

Power supply de-coupling Function setting pull-down/pull-up Crystal resonator load Oscillation amplifier feedback Oscillation amplifier current limit Coaxial input DC cut Coaxial input termination PLL loop filter PLL loop filter PLL loop filter
Ceramic capacitor NP0 characteristics ceramic capacitor
Ceramic capacitor Value as required for frequency input range Value as required for frequency input range Value as required for frequency input range
Table 23 Recommended Component Values
w
PP Rev 1.1 April 2004 63
WM8802 PACKAGE DRAWING
FT: 48 PIN SQFP (7 x 7 x 1.0 mm) DM032.A
Product Preview
b
e
25
36
37
24
E1
E
48
13
1
12
c
D1 D
L
A A2
A1
Symbols A A1 A2 b c D D1 E E1 e L
Dimensions (mm) MIN NOM MAX --------1.70 ----0.10 ------------1.50 --------0.18 --------0.15 9.00 BSC 7.00 BSC 9.00 BSC 7.00 BSC 0.50 BSC ----0.50 ----o --------0 Tolerances of Form and Position
NOTES: A. ALL LINEAR DIMENSIONS ARE IN MILLIMETERS. B. THIS DRAWING IS SUBJECT TO CHANGE WITHOUT NOTICE. C. BODY DIMENSIONS DO NOT INCLUDE MOLD FLASH OR PROTRUSION, NOT TO EXCEED 0.25MM.
w
PP Rev 1.1 April 2004 64
Product Preview
WM8802
IMPORTANT NOTICE
Wolfson Microelectronics plc (WM) reserve the right to make changes to their products or to discontinue any product or service without notice, and advise customers to obtain the latest version of relevant information to verify, before placing orders, that information being relied on is current. All products are sold subject to the WM terms and conditions of sale supplied at the time of order acknowledgement, including those pertaining to warranty, patent infringement, and limitation of liability.
WM warrants performance of its products to the specifications applicable at the time of sale in accordance with WM's standard warranty. Testing and other quality control techniques are utilised to the extent WM deems necessary to support this warranty. Specific testing of all parameters of each device is not necessarily performed, except those mandated by government requirements.
In order to minimise risks associated with customer applications, adequate design and operating safeguards must be used by the customer to minimise inherent or procedural hazards. Wolfson products are not authorised for use as critical components in life support devices or systems without the express written approval of an officer of the company. Life support devices or systems are devices or systems that are intended for surgical implant into the body, or support or sustain life, and whose failure to perform when properly used in accordance with instructions for use provided, can be reasonably expected to result in a significant injury to the user. A critical component is any component of a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system, or to affect its safety or effectiveness.
WM assumes no liability for applications assistance or customer product design. WM does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right of WM covering or relating to any combination, machine, or process in which such products or services might be or are used. WM's publication of information regarding any third party's products or services does not constitute WM's approval, license, warranty or endorsement thereof.
Reproduction of information from the WM web site or datasheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations and notices. Representation or reproduction of this information with alteration voids all warranties provided for an associated WM product or service, is an unfair and deceptive business practice, and WM is not responsible nor liable for any such use.
Resale of WM's products or services with statements different from or beyond the parameters stated by WM for that product or service voids all express and any implied warranties for the associated WM product or service, is an unfair and deceptive business practice, and WM is not responsible nor liable for any such use.
ADDRESS:
Wolfson Microelectronics plc 26 Westfield Road Edinburgh EH11 2QB United Kingdom
Tel :: +44 (0)131 272 7000 Fax :: +44 (0)131 272 7001 Email :: sales@wolfsonmicro.com
w
PP Rev 1.1 April 2004 65


▲Up To Search▲   

 
Price & Availability of WM8802

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X